优化
This commit is contained in:
@@ -98,7 +98,7 @@ data class BookChapter(
|
|||||||
if (item.pattern.isNotEmpty()) {
|
if (item.pattern.isNotEmpty()) {
|
||||||
try {
|
try {
|
||||||
val mDisplayTitle = if (item.isRegex) {
|
val mDisplayTitle = if (item.isRegex) {
|
||||||
displayTitle.replace(item.pattern.toRegex(), item.replacement, 100)
|
displayTitle.replace(item.pattern.toRegex(), item.replacement, 1000)
|
||||||
} else {
|
} else {
|
||||||
displayTitle.replace(item.pattern, item.replacement)
|
displayTitle.replace(item.pattern, item.replacement)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class ContentProcessor private constructor(
|
|||||||
if (item.pattern.isNotEmpty()) {
|
if (item.pattern.isNotEmpty()) {
|
||||||
kotlin.runCatching {
|
kotlin.runCatching {
|
||||||
mContent = if (item.isRegex) {
|
mContent = if (item.isRegex) {
|
||||||
mContent.replace(item.pattern.toRegex(), item.replacement, 2000L)
|
mContent.replace(item.pattern.toRegex(), item.replacement, 3000L)
|
||||||
} else {
|
} else {
|
||||||
mContent.replace(item.pattern, item.replacement)
|
mContent.replace(item.pattern, item.replacement)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user