mirror of https://github.com/logseq/logseq
fix(electron): windows path escape with colon
parent
2c1b32e2b5
commit
114a8a5ace
|
@ -154,12 +154,16 @@
|
|||
(defn- sanitize-graph-name
|
||||
[graph-name]
|
||||
(when graph-name
|
||||
(string/replace graph-name "/" "++")))
|
||||
(-> graph-name
|
||||
(string/replace "/" "++")
|
||||
(string/replace ":" "+3A+"))))
|
||||
|
||||
(defn- graph-name->path
|
||||
[graph-name]
|
||||
(when graph-name
|
||||
(string/replace graph-name "++" "/")))
|
||||
(defn- graph-name->path
|
||||
[graph-name]
|
||||
(when graph-name
|
||||
(-> graph-name
|
||||
(string/replace "+3A+" ":")
|
||||
(string/replace "++" "/"))))
|
||||
|
||||
(defn- get-graphs-dir
|
||||
[]
|
||||
|
|
Loading…
Reference in New Issue