|
|
|
@ -80,6 +80,7 @@ data class BookChapter( |
|
|
|
|
chineseConvert: Boolean = true, |
|
|
|
|
): String { |
|
|
|
|
var displayTitle = title.replace(AppPattern.rnRegex, "") |
|
|
|
|
val mDisplayTitle = displayTitle |
|
|
|
|
if (useReplace && replaceRules != null) { |
|
|
|
|
replaceRules.forEach { item -> |
|
|
|
|
if (item.pattern.isNotEmpty()) { |
|
|
|
@ -95,6 +96,7 @@ data class BookChapter( |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (displayTitle.isBlank()) displayTitle = mDisplayTitle |
|
|
|
|
if (chineseConvert) { |
|
|
|
|
when (AppConfig.chineseConverterType) { |
|
|
|
|
1 -> displayTitle = ChineseUtils.t2s(displayTitle) |
|
|
|
|