From e0a66f09679fb3434bd7e0e76afb044616defc44 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 23 Jul 2021 13:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }