mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
fix(fs): path-join testcase
This commit is contained in:
3
deps/common/src/logseq/common/path.cljs
vendored
3
deps/common/src/logseq/common/path.cljs
vendored
@@ -169,7 +169,8 @@
|
||||
(if (is-file-url? base)
|
||||
(apply url-join base segments)
|
||||
(let [rejoined-path (apply path-join-internal base segments)]
|
||||
(if (string/starts-with? base "//") ;; Win path fix
|
||||
(if (and (not-empty base)
|
||||
(string/starts-with? base "//")) ;; Win path fix
|
||||
(str "/" rejoined-path)
|
||||
rejoined-path))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user