mirror of https://github.com/logseq/logseq
fix(android): ignore reading files containing # or %
User can use "#" and "%" in page name, but those two chars will be replaced by "_", as same as the behaviors on desktop.pull/3535/head
parent
571d83e6f6
commit
42019d1f9f
|
@ -47,7 +47,8 @@
|
|||
files (->> files
|
||||
(remove (fn [file]
|
||||
(or (string/starts-with? file ".")
|
||||
(string/starts-with? file "#")
|
||||
(string/includes? file "#")
|
||||
(string/includes? file "%")
|
||||
(= file "bak")))))
|
||||
files (->> files
|
||||
(map (fn [file]
|
||||
|
|
|
@ -1128,7 +1128,9 @@
|
|||
(remove-boundary-slashes)
|
||||
(string/replace #"/" ".")
|
||||
;; Windows reserved path characters
|
||||
(string/replace windows-reserved-chars "_")))
|
||||
(string/replace windows-reserved-chars "_")
|
||||
;; for android filesystem compatiblity
|
||||
(string/replace #"%#" "_")))
|
||||
|
||||
(defn lowercase-first
|
||||
[s]
|
||||
|
|
Loading…
Reference in New Issue