From aa68694821ff816523e71e33367d812c6f3e8105 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 7 Dec 2022 19:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/help/book/ContentProcessor.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/book/ContentProcessor.kt b/app/src/main/java/io/legado/app/help/book/ContentProcessor.kt index 7f1de2870..e38b81539 100644 --- a/app/src/main/java/io/legado/app/help/book/ContentProcessor.kt +++ b/app/src/main/java/io/legado/app/help/book/ContentProcessor.kt @@ -16,7 +16,6 @@ import kotlinx.coroutines.CancellationException import splitties.init.appCtx import java.lang.ref.WeakReference import java.util.concurrent.CopyOnWriteArrayList -import java.util.regex.Pattern class ContentProcessor private constructor( private val bookName: String, @@ -82,15 +81,6 @@ class ContentProcessor private constructor( ): List { var mContent = content if (content != "null") { - //去除重复标题 -// try { -// val name = Pattern.quote(book.name) -// val title = Pattern.quote(chapter.title) -// val titleRegex = "^(\\s|\\p{P}|${name})*${title}(\\s)*".toRegex() -// mContent = mContent.replace(titleRegex, "") -// } catch (e: Exception) { -// AppLog.put("去除重复标题出错\n${e.localizedMessage}", e) -// } if (reSegment && book.getReSegment()) { //重新分段 mContent = ContentHelp.reSegment(mContent, chapter.title)