diff options
author | Linnea Gräf <nea@nea.moe> | 2024-12-04 16:42:37 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-12-04 16:42:37 +0100 |
commit | 5efcb03378dae123fabe6ffc38a584cad423fa7f (patch) | |
tree | a37525d9707af73302c2fcaa081ed8fa2d4df218 /buildSrc/src/lookupversion.kt | |
parent | 8df225399f1932b8824d2fc44f4c964bc47fc6aa (diff) | |
download | Firmament-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.kt | 2 |
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? { |