Skip to content

Commit

Permalink
refactoring...
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-MK authored Dec 3, 2024
1 parent cb1fd22 commit b240ee4
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) => /^".*"$/g.test(filter.right) ? filter.right.slice(1, - 1) : filter.right).flat()
keywords.map((filter) => filter.right.replace(/^"(.*)"$/, '$1')).flat()
);
if (keywordFilter.right.length > 0) {
nonKeywords.push(keywordFilter);
Expand Down

0 comments on commit b240ee4

Please sign in to comment.