fix: doc string update

pull/3954/head
Junyi Du 2022-01-19 10:36:50 +08:00 committed by Tienson Qin
parent 694dfe52ec
commit 65f800b4b8
4 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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?)
[]

View File

@ -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

View File

@ -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"))