mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: lowercased block content in search result
This commit is contained in:
@@ -43,8 +43,8 @@
|
||||
result []]
|
||||
(if (and (seq words) content)
|
||||
(let [word (first words)
|
||||
lc-word (string/lower-case word)
|
||||
lc-content (string/lower-case content)]
|
||||
lc-word (util/search-normalize word)
|
||||
lc-content (util/search-normalize content)]
|
||||
(if-let [i (string/index-of lc-content lc-word)]
|
||||
(recur (rest words)
|
||||
(subs content (+ i (count word)))
|
||||
|
||||
Reference in New Issue
Block a user