Skip to content

Commit

Permalink
updated regex ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-MK authored Dec 6, 2024
1 parent b469998 commit 82e5a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/SearchParser/searchParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function peg$parse(input, options) {
const keywordFilter = buildFilter(
"eq",
"keyword",
keywords.map((filter) => filter.right.replace(/^"(.*)"$/, '$1')).flat()
keywords.map((filter) => filter.right.replace(/^(['"])(.*)\1$/, '$2')).flat()
);
if (keywordFilter.right.length > 0) {
nonKeywords.push(keywordFilter);
Expand Down

0 comments on commit 82e5a98

Please sign in to comment.