Skip to content

Commit 2d9f412

Browse files
committed
[JAVA-42811]
1 parent b73a54f commit 2d9f412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-kotlin-modules/core-kotlin-strings-4/src/test/kotlin/com/baeldung/booleanValueOfKotlinEquivalent/BooleanValueOfKotlinEquivalentUnitTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fun convertStringToBooleanUsingRegex(input: String): Boolean {
7575
}
7676

7777
fun String.toBooleanValue(): Boolean =
78-
when (this.toLowerCase()) {
78+
when (this.lowercase()) {
7979
"true" -> true
8080
else -> false
8181
}

0 commit comments

Comments
 (0)