Fixed wrong negation

if search term has parentheses and in parentheses by itself
This commit is contained in:
stsyn 2020-10-07 11:45:16 +05:00 committed by Luna D
parent 4d96843286
commit 995ca3bc3c
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -573,10 +573,10 @@ function generateLexArray(searchStr, options) {
} }
tokenStack.push(op); tokenStack.push(op);
} }
}
if (groupNegate.length > 0 && groupNegate.pop()) { if (groupNegate.length > 0 && groupNegate.pop()) {
tokenStack.push('not_op'); tokenStack.push('not_op');
} }
}
break; break;
case 'fuzz': case 'fuzz':
if (searchTerm) { if (searchTerm) {