pull/32/head
kunfei 5 years ago
parent d907623069
commit 701932c555
  1. 4
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -474,10 +474,12 @@ class AnalyzeRule(private var book: BaseBook? = null) {
val regType = ruleType[j]
if (regType > 0) {
@Suppress("UNCHECKED_CAST")
val resultList = result as List<String>
val resultList = result as List<String?>
if (resultList.size > regType) {
resultList[regType]?.let {
infoVal.insert(0, resultList[regType])
}
}
} else if (regType < 0) {
val jsEval: Any = evalJS(ruleParam[j], result)
if (jsEval is String) {

Loading…
Cancel
Save