fix(mobile): add title property if page name contains #, %

pull/3535/head
leizhe 2021-12-15 20:11:41 +08:00 committed by Tienson Qin
parent 42019d1f9f
commit f7e3a18f2a
1 changed files with 4 additions and 2 deletions

View File

@ -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]