Update RuleAnalyzer.kt

搞错了,那两个不是逻辑错误
pull/1105/head
bushixuanqi 3 years ago committed by GitHub
parent 808e58d4b5
commit a3dbb32812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/model/analyzeRule/RuleAnalyzer.kt

@ -277,7 +277,7 @@ class RuleAnalyzer(data: String) {
if(st == -1) {
var rule = arrayOf(queue.substring(start, pos)) //压入分隔的首段规则到数组
var rule = arrayOf(queue.substring(0, pos)) //压入分隔的首段规则到数组
elementsType = queue.substring(pos, pos + step) //设置组合类型
pos += step //跳过分隔符
@ -294,7 +294,7 @@ class RuleAnalyzer(data: String) {
val rule = if(st >pos ){ //先匹配到st1pos,表明分隔字串不在选择器中,将选择器前分隔字串分隔的字段依次压入数组
var rule = arrayOf(queue.substring(start, pos)) //压入分隔的首段规则到数组
var rule = arrayOf(queue.substring(0, pos)) //压入分隔的首段规则到数组
elementsType = queue.substring(pos, pos + step) //设置组合类型
pos += step //跳过分隔符

Loading…
Cancel
Save