mirror of https://github.com/logseq/logseq
fix: doc string update
parent
694dfe52ec
commit
65f800b4b8
|
@ -117,7 +117,7 @@
|
|||
matched-pages (when-not (string/blank? q)
|
||||
(editor-handler/get-matched-pages q))
|
||||
matched-pages (cond
|
||||
(contains? (set (map util/page-name-sanity-lc matched-pages)) (util/page-name-sanity-lc (string/trim q))) ;; TODO: merge with frontend.search.exact-matched?
|
||||
(contains? (set (map util/page-name-sanity-lc matched-pages)) (util/page-name-sanity-lc (string/trim q))) ;; if there's a page name fully matched
|
||||
matched-pages
|
||||
|
||||
(empty? matched-pages)
|
||||
|
|
|
@ -97,8 +97,8 @@
|
|||
search-mode (state/sub :search/mode)
|
||||
new-page (if (or
|
||||
(and (seq pages)
|
||||
(= (util/page-name-sanity-lc search-q)
|
||||
(util/page-name-sanity-lc (:data (first pages)))))
|
||||
(= (util/safe-page-name-sanity-lc search-q)
|
||||
(util/safe-page-name-sanity-lc (:data (first pages)))))
|
||||
(nil? result)
|
||||
all?)
|
||||
[]
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
(protocol/transact-blocks! engine data)))
|
||||
|
||||
(defn exact-matched?
|
||||
"Check if two strings points toward same file"
|
||||
"Check if two strings points toward same search result"
|
||||
[q match]
|
||||
(when (and (string? q) (string? match))
|
||||
(boolean
|
||||
|
|
|
@ -1186,7 +1186,7 @@
|
|||
[s]
|
||||
(.normalize s "NFC"))
|
||||
(defn path-normalize
|
||||
"Normalize file path (for reading, not writting)"
|
||||
"Normalize file path (for reading paths from FS, not required by writting)"
|
||||
[s]
|
||||
(.normalize s "NFC"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue