Skip to content

Commit 1219482

Browse files
committed
Fix quoting start pos if term relation modifiers exist
1 parent 03f8b94 commit 1219482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cql.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ CQLParser.prototype = {
346346
},
347347
_parseModifiers: function () {
348348
var ar = new Array();
349+
let _safeExprStart = this._exprStart;
349350
while (this.look == "/") {
350351
let _mstart = this.qi;
351352
this._move();
@@ -384,6 +385,7 @@ CQLParser.prototype = {
384385
ar.push(m);
385386
}
386387
}
388+
this._exprStart = _safeExprStart;
387389
return ar;
388390
},
389391
_parseSearchClause: function (field, relation, modifiers) {

0 commit comments

Comments
 (0)