mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
fix: #tag query
This commit is contained in:
@@ -417,7 +417,8 @@
|
||||
(not (string/blank? s)))
|
||||
(let [counter (atom 0)]
|
||||
(try
|
||||
(let [form (some-> s
|
||||
(let [s (if (= \# (first s)) (util/format "[[%s]]" (subs s 1)) s)
|
||||
form (some-> s
|
||||
(pre-transform)
|
||||
(reader/read-string))]
|
||||
(if (symbol? form)
|
||||
@@ -460,8 +461,10 @@
|
||||
(let [query-string (template/resolve-dynamic-template! query-string)]
|
||||
(when-not (string/blank? query-string)
|
||||
(let [{:keys [query sort-by blocks? sample] :as result} (parse repo query-string)
|
||||
query (if (string? query) (string/trim query) query)]
|
||||
(if (and (string? result) (not (string/includes? result " ")))
|
||||
query (if (string? query) (string/trim query) query)
|
||||
full-text-query? (and (string? result)
|
||||
(not (string/includes? result " ")))]
|
||||
(if full-text-query?
|
||||
(if (= "\"" (first result) (last result))
|
||||
(subs result 1 (dec (count result)))
|
||||
result)
|
||||
|
||||
Reference in New Issue
Block a user