build: Fix dev versions not being applied properly

This commit is contained in:
Linnea Gräf
2024-12-04 16:42:37 +01:00
parent 8df225399f
commit 5efcb03378

View File

@@ -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? {