Merge pull request #1811 from node-red-hitachi/0.19-fix-typo-in-utils

Fix typos in util.js
This commit is contained in:
Nick O'Leary 2018-07-16 08:36:13 +01:00 committed by GitHub
commit 5807ab82c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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