Skip to content

Commit 0ddd421

Browse files
committed
Fix equalsPlaceholderText
1 parent e43d152 commit 0ddd421

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/com/unciv/models/translations/Translations.kt

-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ fun String.getPlaceholderText(): String {
501501
}
502502

503503
fun String.equalsPlaceholderText(str: String): Boolean {
504-
if (length != str.length) return false
505504
if (isEmpty() && str.isEmpty()) return true // Empty strings have no .first()
506505
if (first() != str.first()) return false // for quick negative return 95% of the time
507506
return this.getPlaceholderText() == str

0 commit comments

Comments
 (0)