mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
Fix writeFile
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
(defn write-file
|
||||
[dir path content]
|
||||
(js/window.pfs.writeFile (str dir "/" path) content))
|
||||
(and js/window.pfs (js/window.pfs.writeFile (str dir "/" path) content)))
|
||||
|
||||
(defn stat
|
||||
[dir path]
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
(defn search
|
||||
([q]
|
||||
(search q 5))
|
||||
(search q 20))
|
||||
([q limit]
|
||||
(when-not (string/blank? q)
|
||||
(let [q (clean q)]
|
||||
@@ -88,8 +88,7 @@
|
||||
(re-find (re-pattern (str "(?i)" q)) content)))
|
||||
;; (fn [content]
|
||||
;; (> (score q (.toLowerCase content)) 0))
|
||||
limit))
|
||||
))))
|
||||
limit))))))
|
||||
|
||||
(defn page-search
|
||||
([q]
|
||||
|
||||
Reference in New Issue
Block a user