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)