优化代码

pull/357/head
gedoor 4 years ago
parent b8b1c8b05b
commit ff21aee1a4
  1. 3
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -376,8 +376,7 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions {
val jsMatcher = JS_PATTERN.matcher(vRuleStr)
while (jsMatcher.find()) {
if (jsMatcher.start() > start) {
tmp = vRuleStr.substring(start, jsMatcher.start())
.trim { it <= ' ' }
tmp = vRuleStr.substring(start, jsMatcher.start()).trim { it <= ' ' }
if (!TextUtils.isEmpty(tmp)) {
ruleList.add(SourceRule(tmp, mMode))
}

Loading…
Cancel
Save