From cb4cb26f58f8529c23f88ce90c7c5c0f33e51d23 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 7 Oct 2020 14:57:34 +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/AnalyzeUrl.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index 90cff8f4d..114bc19b7 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -105,13 +105,11 @@ class AnalyzeUrl( when { ruleStr.startsWith("") -> { ruleStr = ruleStr.substring(4, ruleStr.lastIndexOf("<")) - ruleUrl = - evalJS(ruleStr, ruleUrl) as String + ruleUrl = evalJS(ruleStr, ruleUrl) as String } ruleStr.startsWith("@js", true) -> { ruleStr = ruleStr.substring(4) - ruleUrl = - evalJS(ruleStr, ruleUrl) as String + ruleUrl = evalJS(ruleStr, ruleUrl) as String } else -> ruleUrl = ruleStr.replace("@result", ruleUrl) }