处理索引超过两位处理不对的问题
pull/1198/head
bushixuanqi 3 years ago committed by GitHub
parent 96ba9053f9
commit 1b07739c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt

@ -401,7 +401,7 @@ class AnalyzeByJSoup(doc: Any) {
var rl = rus[len] var rl = rus[len]
if (rl == ' ') continue //跳过空格 if (rl == ' ') continue //跳过空格
if (rl in '0'..'9') l += rl //将数值累接入临时字串中,遇到分界符才取出 if (rl in '0'..'9') l = rl + l //将数值累接入临时字串中,遇到分界符才取出
else if (rl == '-') curMinus = true else if (rl == '-') curMinus = true
else { else {
@ -461,7 +461,7 @@ class AnalyzeByJSoup(doc: Any) {
val rl = rus[len] val rl = rus[len]
if (rl == ' ') continue //跳过空格 if (rl == ' ') continue //跳过空格
if (rl in '0'..'9') l += rl //将数值累接入临时字串中,遇到分界符才取出 if (rl in '0'..'9') l = rl + l //将数值累接入临时字串中,遇到分界符才取出
else if (rl == '-') curMinus = true else if (rl == '-') curMinus = true
else { else {

Loading…
Cancel
Save