aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/lookupversion.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-04 16:42:37 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-04 16:42:37 +0100
commit5efcb03378dae123fabe6ffc38a584cad423fa7f (patch)
treea37525d9707af73302c2fcaa081ed8fa2d4df218 /buildSrc/src/lookupversion.kt
parent8df225399f1932b8824d2fc44f4c964bc47fc6aa (diff)
downloadFirmament-5efcb03378dae123fabe6ffc38a584cad423fa7f.tar.gz
Firmament-5efcb03378dae123fabe6ffc38a584cad423fa7f.tar.bz2
Firmament-5efcb03378dae123fabe6ffc38a584cad423fa7f.zip
build: Fix dev versions not being applied properly
Diffstat (limited to 'buildSrc/src/lookupversion.kt')
-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? {