We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ddd421 commit d99fbd8Copy full SHA for d99fbd8
core/src/com/unciv/models/ruleset/unique/Countables.kt
@@ -202,7 +202,6 @@ enum class Countables(
202
errors.add("`$text` contains parameter `$actualParameterText` which is invalid for type `${parameterType.name}`")
203
}
204
return errors
205
-
206
207
208
core/src/com/unciv/models/translations/Translations.kt
@@ -502,6 +502,7 @@ fun String.getPlaceholderText(): String {
502
503
fun String.equalsPlaceholderText(str: String): Boolean {
504
if (isEmpty() && str.isEmpty()) return true // Empty strings have no .first()
505
+ if (isEmpty() != str.isEmpty()) return false
506
if (first() != str.first()) return false // for quick negative return 95% of the time
507
return this.getPlaceholderText() == str
508
0 commit comments