pull/48/head
kunfei 5 years ago
parent 41e3b84e5e
commit f89cb8f929
  1. 7
      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) @Throws(Exception::class)
fun getString(rule: String): String? { fun getString(ruleStr: String, isUrl: Boolean = false): String? {
return getString(rule, false)
}
@Throws(Exception::class)
fun getString(ruleStr: String, isUrl: Boolean): String? {
if (TextUtils.isEmpty(ruleStr)) return null if (TextUtils.isEmpty(ruleStr)) return null
val ruleList = splitSourceRule(ruleStr) val ruleList = splitSourceRule(ruleStr)
return getString(ruleList, isUrl) return getString(ruleList, isUrl)

Loading…
Cancel
Save