From 113c1630ee019c077ec206523143e8ab8b9ceb64 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 2 Oct 2020 16:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=A3=E6=9E=90=E8=A7=84?= =?UTF-8?q?=E5=88=99?= 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 8cd9937f5..4d17aa16d 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 @@ -456,7 +456,7 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions { while (evalMatcher.find()) { if (evalMatcher.start() > start) { tmp = rule.substring(start, evalMatcher.start()) - if (mode != Mode.Js && mode != Mode.Json && mode != Mode.Regex + if (mode != Mode.Js && mode != Mode.Regex && start == 0 && !tmp.contains("##") ) { mode = Mode.Regex