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