From 392c947cf22890dee5ee85e35732f51186818d8b Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 15 Dec 2024 16:11:17 +0800 Subject: [PATCH] fix: sqlite operator search --- src/main/frontend/worker/search.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/worker/search.cljs b/src/main/frontend/worker/search.cljs index bc3be933352..266359fc68b 100644 --- a/src/main/frontend/worker/search.cljs +++ b/src/main/frontend/worker/search.cljs @@ -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 "," "")