Skip to content

Commit

Permalink
Replace deprecate usage of toUpperCase()
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Nov 7, 2023
1 parent 2b82d68 commit 40626b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ data class Version(val value: String) : Comparable<Version> {
private val digitsOnlyBasedVersionNumberRegex = "^[0-9,.v-]+$".toRegex()

private fun isDefinitelyStable(version: String): Boolean {
val uppercaseVersion = version.toUpperCase()
val uppercaseVersion = version.uppercase()
val hasStableKeyword = knownStableKeywords.any { it in uppercaseVersion }
return hasStableKeyword || digitsOnlyBasedVersionNumberRegex.matches(version)
}
Expand Down

0 comments on commit 40626b9

Please sign in to comment.