pull/63/head
kunfei 5 years ago
parent 24974cfa17
commit b49a5d7de9
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -320,7 +320,7 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions {
val pattern = Pattern.compile(rule.replaceRegex)
val matcher = pattern.matcher(vResult)
if (matcher.find()) {
matcher.group(0).replaceFirst(rule.replaceRegex.toRegex(), rule.replacement)
matcher.group(0)!!.replaceFirst(rule.replaceRegex.toRegex(), rule.replacement)
} else {
""
}

Loading…
Cancel
Save