修复规则解析bug

pull/397/head
gedoor 4 years ago
parent 6b7de1cf2a
commit 2e6ae4cf3b
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -464,6 +464,8 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions {
mode = Mode.Regex mode = Mode.Regex
} }
splitRegex(tmp) splitRegex(tmp)
} else if (evalMatcher.start() == 0) {
mode = Mode.Regex
} }
tmp = evalMatcher.group() tmp = evalMatcher.group()
when { when {

Loading…
Cancel
Save