mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #1811 from node-red-hitachi/0.19-fix-typo-in-utils
Fix typos in util.js
This commit is contained in:
commit
5807ab82c1
@ -305,7 +305,7 @@ function setMessageProperty(msg,prop,value,createMissing) {
|
||||
}
|
||||
}
|
||||
|
||||
function evaluteEnvProperty(value) {
|
||||
function evaluateEnvProperty(value) {
|
||||
if (/^\${[^}]+}$/.test(value)) {
|
||||
// ${ENV_VAR}
|
||||
value = value.substring(2,value.length-1);
|
||||
@ -372,7 +372,7 @@ function evaluateNodeProperty(value, type, node, msg, callback) {
|
||||
var expr = prepareJSONataExpression(value,node);
|
||||
result = evaluateJSONataExpression(expr,msg);
|
||||
} else if (type === 'env') {
|
||||
result = evaluteEnvProperty(value);
|
||||
result = evaluateEnvProperty(value);
|
||||
}
|
||||
if (callback) {
|
||||
callback(null,result);
|
||||
|
Loading…
Reference in New Issue
Block a user