diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index 9568f5094..a3496d9b5 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt @@ -451,7 +451,7 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions { if (evalMatcher.find()) { tmp = rule.substring(start, evalMatcher.start()) if (mode != Mode.Js && mode != Mode.Regex && - (evalMatcher.start() == 0 || (start == 0 && !tmp.contains("##"))) + (evalMatcher.start() == 0 || !tmp.contains("##")) ) { mode = Mode.Regex }