diff --git a/src/electron/electron/search.cljs b/src/electron/electron/search.cljs index b2e71cfea1..2525859db8 100644 --- a/src/electron/electron/search.cljs +++ b/src/electron/electron/search.cljs @@ -178,7 +178,9 @@ (string/replace " or " " OR ") (string/replace " | " " OR ") (string/replace " not " " NOT ")) - match-input (str "\"" match-input "\"") + match-input (if (not= q match-input) + (string/replace match-input "," "") + (str "\"" match-input "\"")) non-match-input (str "%" (string/replace q #"\s+" "%") "%") limit (or limit 20) select "select rowid, uuid, content, page from blocks_fts where "