diff --git a/app/src/main/java/io/legado/app/help/ContentProcessor.kt b/app/src/main/java/io/legado/app/help/ContentProcessor.kt index 0a0b67c07..b9c5f1d1e 100644 --- a/app/src/main/java/io/legado/app/help/ContentProcessor.kt +++ b/app/src/main/java/io/legado/app/help/ContentProcessor.kt @@ -63,7 +63,7 @@ class ContentProcessor private constructor( ): List { //去除无效内容 var mContent = content.trimStart { - it.code <= 0x20 || it == ' ' || it == ',' || it == ',' || it == ',' + it.code <= 0x20 || it == ' ' || it == ',' || it == ',' } //去除书名 if (mContent.startsWith(book.name)) { @@ -76,7 +76,7 @@ class ContentProcessor private constructor( } //去除无效内容 mContent = mContent.trimStart { - it.code <= 0x20 || it == ' ' || it == ',' || it == ',' || it == ',' + it.code <= 0x20 || it == ' ' || it == ',' || it == ',' } //去除标题 if (mContent.startsWith(chapter.title)) { @@ -84,7 +84,7 @@ class ContentProcessor private constructor( } //去除无效内容 mContent = mContent.trimStart { - it.code <= 0x20 || it == ' ' || it == ',' || it == ',' || it == ',' + it.code <= 0x20 || it == ' ' || it == ',' || it == ',' } if (includeTitle) { //重新添加标题