pull/2498/head
Horis 2 years ago
parent d07fdeec9a
commit 29bd3f5f56
  1. 2
      app/src/main/java/io/legado/app/utils/StringExtensions.kt

@ -70,7 +70,7 @@ fun String?.isTrue(nullIsTrue: Boolean = false): Boolean {
if (this.isNullOrBlank() || this == "null") {
return nullIsTrue
}
return !this.matches("\\s*(?i)(false|no|not|0)\\s*".toRegex())
return !this.trim().matches("(?i)^(false|no|not|0)$".toRegex())
}
fun String.splitNotBlank(vararg delimiter: String, limit: Int = 0): Array<String> = run {

Loading…
Cancel
Save