fix(electron): windows path escape with colon

pull/3575/head^2
Andelf 2021-12-25 21:50:12 +08:00
parent 2c1b32e2b5
commit 114a8a5ace
1 changed files with 9 additions and 5 deletions

View File

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