From ff21aee1a46baf4eb90c9abfcc6c3aa608dd6df6 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 3 Sep 2020 09:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 dcf38e764..b83a3e730 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 @@ -376,8 +376,7 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions { val jsMatcher = JS_PATTERN.matcher(vRuleStr) while (jsMatcher.find()) { if (jsMatcher.start() > start) { - tmp = vRuleStr.substring(start, jsMatcher.start()) - .trim { it <= ' ' } + tmp = vRuleStr.substring(start, jsMatcher.start()).trim { it <= ' ' } if (!TextUtils.isEmpty(tmp)) { ruleList.add(SourceRule(tmp, mMode)) }