From 6642eae6a00165f1583347492bf3eb396e8df41b Mon Sep 17 00:00:00 2001 From: C?dric Krier Date: Fri, 15 May 2015 15:29:07 +0200 Subject: [PATCH] Fix is_leaf test instanceof String doesn't work, we must use typeof --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index 800a997..b1819bb 100644 --- a/src/common.js +++ b/src/common.js @@ -1931,7 +1931,7 @@ is_leaf: function(expression) { return ((expression instanceof Array) && (expression.length > 2) && - (expression[1] instanceof String)); + (typeof expression[1] == 'string')); }, eval_leaf: function(part, context, boolop) { if (boolop === undefined) {