From 1b07739c6d524416f26a44d899daa67269d9139e Mon Sep 17 00:00:00 2001 From: bushixuanqi <57338301+bushixuanqi@users.noreply.github.com> Date: Sun, 1 Aug 2021 15:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 处理索引超过两位处理不对的问题 --- .../java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt index 5bc832fde..2cfee12d0 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt @@ -401,7 +401,7 @@ class AnalyzeByJSoup(doc: Any) { var rl = rus[len] if (rl == ' ') continue //跳过空格 - if (rl in '0'..'9') l += rl //将数值累接入临时字串中,遇到分界符才取出 + if (rl in '0'..'9') l = rl + l //将数值累接入临时字串中,遇到分界符才取出 else if (rl == '-') curMinus = true else { @@ -461,7 +461,7 @@ class AnalyzeByJSoup(doc: Any) { val rl = rus[len] if (rl == ' ') continue //跳过空格 - if (rl in '0'..'9') l += rl //将数值累接入临时字串中,遇到分界符才取出 + if (rl in '0'..'9') l = rl + l //将数值累接入临时字串中,遇到分界符才取出 else if (rl == '-') curMinus = true else {