mirror of
https://github.com/logseq/logseq.git
synced 2026-05-17 17:32:35 +00:00
fix: handle windows path in shorten-repo-name
This commit is contained in:
committed by
Tienson Qin
parent
3bb867304d
commit
e4dd021559
@@ -177,7 +177,10 @@
|
||||
(t :git/version) (str " " version/version)]]])))])))
|
||||
|
||||
(defn shorten-repo-name [repo-name]
|
||||
(last (string/split repo-name #"/")))
|
||||
(cond
|
||||
util/mac? (last (string/split repo-name #"/"))
|
||||
util/win32? (last (string/split repo-name #"\\"))
|
||||
:else repo-name))
|
||||
|
||||
(rum/defc repos-dropdown < rum/reactive
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user