Skip to content

Commit c1ca0e4

Browse files
fixed bug with eval number problem
1 parent 09b102e commit c1ca0e4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/woql.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,10 +1315,13 @@ WOQLQuery.prototype.uncleanArgument = function(operator, val, index, allArgs){
13151315
}
13161316
return oval;
13171317
}
1318-
else if(numeric_operators.indexOf(operator) !== -1){
1319-
return val;
1318+
//else if(numeric_operators.indexOf(operator) !== -1){
1319+
// return val;
1320+
//}
1321+
if(typeof val == "string"){
1322+
return '"' + val + '"';
13201323
}
1321-
return '"' + val + '"';
1324+
return val;
13221325
}
13231326

13241327

0 commit comments

Comments
 (0)