From f89cb8f929c06fd080ad30723cf7adee2315d9d7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 12 Nov 2019 11:13:21 +0800 Subject: [PATCH] up --- .../java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 7 +------ 1 file changed, 1 insertion(+), 6 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 ed5712d89..1fa1b11c7 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 @@ -172,12 +172,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { * 获取文本 */ @Throws(Exception::class) - fun getString(rule: String): String? { - return getString(rule, false) - } - - @Throws(Exception::class) - fun getString(ruleStr: String, isUrl: Boolean): String? { + fun getString(ruleStr: String, isUrl: Boolean = false): String? { if (TextUtils.isEmpty(ruleStr)) return null val ruleList = splitSourceRule(ruleStr) return getString(ruleList, isUrl)