Skip to content

Commit

Permalink
fix: sqlite operator search
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 15, 2024
1 parent 09e93ee commit 392c947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/worker/search.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ DROP TRIGGER IF EXISTS blocks_au;
(string/replace " | " " OR ")
(string/replace " not " " NOT "))]
(cond
(re-find #"[^\w\s]" q) ; punctuations
(and (re-find #"[^\w\s]" q) (not (some #(string/includes? match-input %) ["AND" "OR" "NOT"]))) ; punctuations
(str "\"" match-input "\"*")
(not= q match-input)
(string/replace match-input "," "")
Expand Down

0 comments on commit 392c947

Please sign in to comment.