ソースを参照

fix: full-text query support string as parameter too

Tienson Qin 4 年 前
コミット
3b7ff40afc
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/main/frontend/db/query_dsl.cljs

+ 1 - 1
src/main/frontend/db/query_dsl.cljs

@@ -133,7 +133,7 @@
    (build-query repo e env 0))
   ([repo e {:keys [sort-by blocks? counter current-filter] :as env} level]
    ;; TODO: replace with multi-methods for extensibility.
-   (if (symbol? e)
+   (if (or (symbol? e) (string? e))
      ;; regex, FIXME: filter out the current block
      (let [q (re-pattern (str e))]
        (reset! blocks? true)