From c3ebf84eb3677b9aa3f424a24647a20ea291459b Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 25 Oct 2019 10:57:22 +0800 Subject: [PATCH] up --- .../java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 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 c97fc7b98..ebfa3dc50 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 @@ -433,9 +433,10 @@ class AnalyzeRule(private var book: BaseBook? = null) { else -> rule = ruleStr } } + //分离put + rule = splitPutRule(rule, putMap) //分离正则表达式 - val ruleStrS = - rule.trim { it <= ' ' }.split("##") + val ruleStrS = rule.trim { it <= ' ' }.split("##") rule = ruleStrS[0] if (ruleStrS.size > 1) { replaceRegex = ruleStrS[1] @@ -446,8 +447,6 @@ class AnalyzeRule(private var book: BaseBook? = null) { if (ruleStrS.size > 3) { replaceFirst = true } - //分离put - rule = splitPutRule(rule, putMap) //@get,{{ }},$1, 拆分 var start = 0 var tmp: String