Branch parsing can now handle branch names containing "/"

This commit is contained in:
yairm210 2024-09-28 22:08:39 +03:00
parent a905ddebcb
commit 6c0ba3c094

View File

@ -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)