From 6c0ba3c0943eb010bf98c78501c8b7baa5e39c08 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Sat, 28 Sep 2024 22:08:39 +0300 Subject: [PATCH] Branch parsing can now handle branch names containing "/" --- core/src/com/unciv/logic/github/GithubAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/github/GithubAPI.kt b/core/src/com/unciv/logic/github/GithubAPI.kt index 0ed10f7693..214cac2dea 100644 --- a/core/src/com/unciv/logic/github/GithubAPI.kt +++ b/core/src/com/unciv/logic/github/GithubAPI.kt @@ -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)