fix: handle windows path in shorten-repo-name

This commit is contained in:
Devon Zuegel
2021-12-06 16:09:01 -05:00
committed by Tienson Qin
parent 3bb867304d
commit e4dd021559

View File

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