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]
|
[s]
|
||||||
(and (string? s)
|
(and (string? s)
|
||||||
(or (include-windows-reserved-chars? s)
|
(or (include-windows-reserved-chars? s)
|
||||||
(string/includes? s "."))))
|
(string/includes? s ".")
|
||||||
|
(string/includes? s "%")
|
||||||
|
(string/includes? s "#"))))
|
||||||
|
|
||||||
(defn remove-boundary-slashes
|
(defn remove-boundary-slashes
|
||||||
[s]
|
[s]
|
||||||
|
@ -1130,7 +1132,7 @@
|
||||||
;; Windows reserved path characters
|
;; Windows reserved path characters
|
||||||
(string/replace windows-reserved-chars "_")
|
(string/replace windows-reserved-chars "_")
|
||||||
;; for android filesystem compatiblity
|
;; for android filesystem compatiblity
|
||||||
(string/replace #"%#" "_")))
|
(string/replace #"[\\#|%]+" "_")))
|
||||||
|
|
||||||
(defn lowercase-first
|
(defn lowercase-first
|
||||||
[s]
|
[s]
|
||||||
|
|
Loading…
Reference in New Issue