Fix
This commit is contained in:
parent
50aebda69e
commit
51e1c5a9ee
@ -27,7 +27,7 @@ fun isFileAvailable(file: File): Boolean {
|
||||
|
||||
fun getAppVersion(): Int {
|
||||
val parsed = System.getenv("APP_VERSION")?.let {
|
||||
Regex("\\d+").replace(it, "")
|
||||
Regex("[^0-9]").replace(it, "")
|
||||
} ?: "100"
|
||||
return Integer.parseInt(parsed)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user