fix: page name exclude Windows reserved path characters

pull/645/head 0.0.4.3
Tienson Qin 2020-10-29 21:51:08 +08:00
parent 47f8e517fb
commit 185eb430ab
1 changed files with 2 additions and 1 deletions

View File

@ -889,7 +889,8 @@
[page-name]
(-> page-name
(string/replace #"\s+" "_")
(string/replace "/" "_")))
;; Windows reserved path characters
(string/replace #"[\\/:\\*\\?\"<>|]+" "_")))
(defn lowercase-first
[s]