pull/1673/head
kunfei 3 years ago
parent 89e53fbd17
commit b6e0d52967
  1. 2
      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)

Loading…
Cancel
Save