修复规则解析bug

pull/403/head
gedoor 4 years ago
parent 7e7da0b2fd
commit 6219ab8774
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -458,7 +458,7 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions {
} }
tmp = evalMatcher.group() tmp = evalMatcher.group()
when { when {
tmp.startsWith("$") && !rule.contains("##") -> { tmp.startsWith("$") -> {
ruleType.add(tmp.substring(1).toInt()) ruleType.add(tmp.substring(1).toInt())
ruleParam.add(tmp) ruleParam.add(tmp)
} }

Loading…
Cancel
Save