pull/1161/head
gedoor 3 years ago
parent 82821167da
commit e0a66f0967
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -451,7 +451,7 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions {
if (evalMatcher.find()) { if (evalMatcher.find()) {
tmp = rule.substring(start, evalMatcher.start()) tmp = rule.substring(start, evalMatcher.start())
if (mode != Mode.Js && mode != Mode.Regex && if (mode != Mode.Js && mode != Mode.Regex &&
(evalMatcher.start() == 0 || (start == 0 && !tmp.contains("##"))) (evalMatcher.start() == 0 || !tmp.contains("##"))
) { ) {
mode = Mode.Regex mode = Mode.Regex
} }

Loading…
Cancel
Save