pull/1578/head 3.22.012821
kunfei 3 years ago
parent c37d597b08
commit 6478ad5509
  1. 2
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -496,7 +496,7 @@ interface JsExtensions {
correctQueryTTF: QueryTTF? correctQueryTTF: QueryTTF?
): String { ): String {
if (errorQueryTTF == null || correctQueryTTF == null) return text if (errorQueryTTF == null || correctQueryTTF == null) return text
val contentArray = text.toStringArray() val contentArray = text.toStringArray() //这里不能用toCharArray,因为有些文字占多个字节
contentArray.forEachIndexed { index, s -> contentArray.forEachIndexed { index, s ->
val oldCode = s.codePointAt(0) val oldCode = s.codePointAt(0)
if (errorQueryTTF.inLimit(oldCode)) { if (errorQueryTTF.inLimit(oldCode)) {

Loading…
Cancel
Save