feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 9f4d7f83e7
commit 36683d5734
  1. 2
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -273,7 +273,7 @@ object BookHelp {
if (enableReplace) { if (enableReplace) {
upReplaceRules(name, origin) upReplaceRules(name, origin)
kotlin.runCatching { kotlin.runCatching {
for (item in replaceRules) { replaceRules.forEach { item ->
item.pattern.let { item.pattern.let {
if (it.isNotEmpty()) { if (it.isNotEmpty()) {
c = if (item.isRegex) { c = if (item.isRegex) {

Loading…
Cancel
Save