mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
Branch parsing can now handle branch names containing "/"
This commit is contained in:
parent
a905ddebcb
commit
6c0ba3c094
@ -194,7 +194,7 @@ object GithubAPI {
|
||||
if (matchZip != null && matchZip.groups.size > 4)
|
||||
return processMatch(matchZip)
|
||||
|
||||
val matchBranch = Regex("""^(.*/(.*)/(.*))/tree/([^/]+)$""").matchEntire(url)
|
||||
val matchBranch = Regex("""^(.*/(.*)/(.*))/tree/(.*)$""").matchEntire(url)
|
||||
if (matchBranch != null && matchBranch.groups.size > 4)
|
||||
return processMatch(matchBranch)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user