Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jan 28, 2022
1 parent c37d597 commit 6478ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/io/legado/app/help/JsExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ interface JsExtensions {
correctQueryTTF: QueryTTF?
): String {
if (errorQueryTTF == null || correctQueryTTF == null) return text
val contentArray = text.toStringArray()
val contentArray = text.toStringArray() //这里不能用toCharArray,因为有些文字占多个字节
contentArray.forEachIndexed { index, s ->
val oldCode = s.codePointAt(0)
if (errorQueryTTF.inLimit(oldCode)) {
Expand Down

0 comments on commit 6478ad5

Please sign in to comment.