mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
move all string/join used to construct paths to one place
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
(when current-file
|
||||
(let [parts (string/split current-file #"/")
|
||||
parts-2 (string/split path #"/")
|
||||
current-dir (string/join "/" (drop-last 1 parts))]
|
||||
current-dir (util/string-join-path (drop-last 1 parts))]
|
||||
(cond
|
||||
(if util/win32? (utils/win32 path) (util/starts-with? path "/"))
|
||||
path
|
||||
@@ -187,7 +187,7 @@
|
||||
parts
|
||||
(rest col)))))
|
||||
parts (remove #(string/blank? %) parts)]
|
||||
(string/join "/" (reverse parts))))))))
|
||||
(util/string-join-path (reverse parts))))))))
|
||||
|
||||
(rum/defcs asset-loader
|
||||
< rum/reactive
|
||||
|
||||
Reference in New Issue
Block a user