1
0
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:
Hiroyasu Nishiyama 2018-07-16 16:09:15 +09:00
parent 7fca04404e
commit 65cb04da63

View File

@ -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);