mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 06:04:23 +00:00
fix: full-text query support string as parameter too
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user