From b6e0d5296713849394bfe0d762f177e113f823a0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 2 Mar 2022 13:38:39 +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 --- app/src/main/java/io/legado/app/help/ContentProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cf3116a82..45a41801e 100644 --- a/app/src/main/java/io/legado/app/help/ContentProcessor.kt +++ b/app/src/main/java/io/legado/app/help/ContentProcessor.kt @@ -79,7 +79,7 @@ class ContentProcessor private constructor( try { val name = Pattern.quote(book.name) val title = Pattern.quote(chapter.title) - val titleRegex = "^(\\s|\\p{P}|${name})*${title}(\\s|\\p{P})+".toRegex() + val titleRegex = "^(\\s|\\p{P}|${name})*${title}(\\s)+".toRegex() mContent = mContent.replace(titleRegex, "") } catch (e: Exception) { AppLog.put("去除重复标题出错\n${e.localizedMessage}", e)