From 995ca3bc3c9ad2b5e58f5e4b38164b613e520ca7 Mon Sep 17 00:00:00 2001 From: stsyn Date: Wed, 7 Oct 2020 11:45:16 +0500 Subject: [PATCH] Fixed wrong negation if search term has parentheses and in parentheses by itself --- assets/js/match_query.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/match_query.js b/assets/js/match_query.js index fb9062fc..9cfab1fd 100644 --- a/assets/js/match_query.js +++ b/assets/js/match_query.js @@ -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':