pull/1835/head
kunfei 3 years ago
parent 00a4846829
commit 28c571162d
  1. 2
      app/src/main/java/io/legado/app/data/entities/BookChapter.kt
  2. 2
      app/src/main/java/io/legado/app/help/ContentProcessor.kt

@ -98,7 +98,7 @@ data class BookChapter(
if (item.pattern.isNotEmpty()) {
try {
val mDisplayTitle = if (item.isRegex) {
displayTitle.replace(item.pattern.toRegex(), item.replacement, 100)
displayTitle.replace(item.pattern.toRegex(), item.replacement, 1000)
} else {
displayTitle.replace(item.pattern, item.replacement)
}

@ -137,7 +137,7 @@ class ContentProcessor private constructor(
if (item.pattern.isNotEmpty()) {
kotlin.runCatching {
mContent = if (item.isRegex) {
mContent.replace(item.pattern.toRegex(), item.replacement, 2000L)
mContent.replace(item.pattern.toRegex(), item.replacement, 3000L)
} else {
mContent.replace(item.pattern, item.replacement)
}

Loading…
Cancel
Save