mirror of https://github.com/logseq/logseq
fix(mobile): add title property if page name contains #, %
parent
42019d1f9f
commit
f7e3a18f2a
|
@ -1110,7 +1110,9 @@
|
|||
[s]
|
||||
(and (string? s)
|
||||
(or (include-windows-reserved-chars? s)
|
||||
(string/includes? s "."))))
|
||||
(string/includes? s ".")
|
||||
(string/includes? s "%")
|
||||
(string/includes? s "#"))))
|
||||
|
||||
(defn remove-boundary-slashes
|
||||
[s]
|
||||
|
@ -1130,7 +1132,7 @@
|
|||
;; Windows reserved path characters
|
||||
(string/replace windows-reserved-chars "_")
|
||||
;; for android filesystem compatiblity
|
||||
(string/replace #"%#" "_")))
|
||||
(string/replace #"[\\#|%]+" "_")))
|
||||
|
||||
(defn lowercase-first
|
||||
[s]
|
||||
|
|
Loading…
Reference in New Issue