修复规则解析bug

pull/392/head 3.20.092114
gedoor 4 years ago
parent 1bc6c95d52
commit 796c217fa1
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -535,6 +535,7 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions {
}
}
rule = infoVal.toString()
}
//分离正则表达式
val ruleStrS = rule.trim { it <= ' ' }.split("##")
rule = ruleStrS[0]
@ -548,7 +549,6 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions {
replaceFirst = true
}
}
}
private fun isRule(ruleStr: String): Boolean {
return when {

Loading…
Cancel
Save