From 5efcb03378dae123fabe6ffc38a584cad423fa7f Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 4 Dec 2024 16:42:37 +0100 Subject: build: Fix dev versions not being applied properly --- buildSrc/src/lookupversion.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildSrc/src/lookupversion.kt') 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 Regex.useMatcher(string: String, block: (MatchResult) -> T): T? { -- cgit