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