mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
refactor: replace deprecated methods in build.gradle.kts
This commit is contained in:
parent
c4cdd7a60e
commit
c70cab4a73
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ plugins {
|
|||
}
|
||||
|
||||
fun isNonStable(version: String): Boolean {
|
||||
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
|
||||
val unstableKeyword = listOf("ALPHA", "RC").any { version.toUpperCase().contains(it) }
|
||||
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
|
||||
val unstableKeyword = listOf("ALPHA", "RC").any { version.uppercase().contains(it) }
|
||||
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
|
||||
val isStable = stableKeyword || regex.matches(version)
|
||||
return unstableKeyword || !isStable
|
||||
|
|
|
|||
Loading…
Reference in a new issue