enhance: use search normalize

This commit is contained in:
Junyi Du
2022-01-10 14:12:53 +08:00
committed by Tienson Qin
parent 0fd86fd691
commit ebd8e94c23
5 changed files with 16 additions and 8 deletions

View File

@@ -105,8 +105,8 @@
search-mode (state/sub :search/mode)
new-page (if (or
(and (seq pages)
(= (util/safe-page-name-sanity-lc search-q)
(util/safe-page-name-sanity-lc (:data (first pages)))))
(= (util/safe-search-normalize search-q)
(util/safe-search-normalize (:data (first pages)))))
(nil? result)
all?)
[]