fix typos in utils.js

This commit is contained in:
Hiroyasu Nishiyama 2018-07-16 16:09:15 +09:00
parent 7fca04404e
commit 65cb04da63
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)) {
// ${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);