mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Fixed wrong negation
if search term has parentheses and in parentheses by itself
This commit is contained in:
parent
4d96843286
commit
995ca3bc3c
1 changed files with 3 additions and 3 deletions
|
@ -573,9 +573,9 @@ function generateLexArray(searchStr, options) {
|
|||
}
|
||||
tokenStack.push(op);
|
||||
}
|
||||
}
|
||||
if (groupNegate.length > 0 && groupNegate.pop()) {
|
||||
tokenStack.push('not_op');
|
||||
if (groupNegate.length > 0 && groupNegate.pop()) {
|
||||
tokenStack.push('not_op');
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'fuzz':
|
||||
|
|
Loading…
Reference in a new issue