Skip to content

Commit 074e063

Browse files
fix eval method
1 parent a25ac02 commit 074e063

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/woql.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,6 @@ WOQL.trim = function(inputStr, resultVarName) {
440440
return new WOQLQuery().trim(inputStr, resultVarName)
441441
}
442442

443-
/**
444-
* Evaluates the passed arithmetic expression and generates or matches the result value
445-
* @param {object| WOQLQuery | string} arithExp - query or JSON-LD representing the query
446-
* @param {string} resultVarName - output variable
447-
* @returns {WOQLQuery} WOQLQuery
448-
*/
449-
WOQL.eval = WOQL.evaluate
450-
451443
/**
452444
*
453445
* Evaluates the passed arithmetic expression and generates or matches the result value
@@ -461,6 +453,15 @@ WOQL.evaluate = function(arithExp, resultVarName) {
461453
return new WOQLQuery().eval(arithExp, resultVarName)
462454
}
463455

456+
/**
457+
* Evaluates the passed arithmetic expression and generates or matches the result value
458+
* @param {object| WOQLQuery | string} arithExp - query or JSON-LD representing the query
459+
* @param {string} resultVarName - output variable
460+
* @returns {WOQLQuery} WOQLQuery
461+
*/
462+
463+
WOQL.eval = WOQL.evaluate
464+
464465
/**
465466
*
466467
* Adds the numbers together

0 commit comments

Comments
 (0)