aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildSrc/src/lookupversion.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildSrc/src/lookupversion.kt b/buildSrc/src/lookupversion.kt
index 0f1b0c1..8a7c2de 100644
--- a/buildSrc/src/lookupversion.kt
+++ b/buildSrc/src/lookupversion.kt
@@ -6,7 +6,7 @@ fun execString(vararg args: String): String {
return pb.inputStream.readAllBytes().decodeToString().trim()
}
-private val tag = "([0-9.]+)(?:\\+.*)?".toRegex()
+private val tag = "([0-9.]+)(?:\\+[^-]*)?".toRegex()
private val tagOffset = "([0-9.]+)(?:\\+.*)?-([0-9]+)-(.+)".toRegex()
inline fun <T> Regex.useMatcher(string: String, block: (MatchResult) -> T): T? {