Tienson Qin 1 год назад
Родитель
Сommit
392c947cf2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/worker/search.cljs

+ 1 - 1
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 "," "")