Use strict equality to compare clause against operator
In javascript, a list containing a string is equals to the string, e.g:
['foo'] == 'foo'
issue8711
review268071002
This commit is contained in:
1 parent
8a8cf61d46
commit
7103a8a0e7
1 file changed
+1
-1
+1
-1
@@ -1688,7 +1688,7 @@
|
||||
tokens.forEach(function(clause) {
|
||||
if (this.is_generator(clause)) {
|
||||
result.push(this.parse_clause(clause));
|
||||
} else if ((clause == 'OR') || (clause == 'AND')) {
|
||||
} else if ((clause === 'OR') || (clause === 'AND')) {
|
||||
result.push(clause);
|
||||
} else if ((clause.length == 1) &&
|
||||
!(clause[0] instanceof Array)) {
|
||||
|
||||
Reference in new issue
Block a user