From c785a08e81374857f99f93c15b44d3fdae99d7d0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 3 Aug 2019 12:24:50 +0800 Subject: [PATCH] up --- .../java/io/legado/app/model/analyzeRule/AnalyzeByRegex.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByRegex.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByRegex.kt index ce0d385f7..7518aa57d 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByRegex.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByRegex.kt @@ -16,7 +16,7 @@ object AnalyzeByRegex { return if (vIndex + 1 == regs.size) { // 新建容器 val info = arrayListOf() - for (groupIndex in 0 until resM.groupCount()) { + for (groupIndex in 0..resM.groupCount()) { info.add(resM.group(groupIndex)) } info @@ -43,7 +43,7 @@ object AnalyzeByRegex { do { // 新建容器 val info = arrayListOf() - for (groupIndex in 0 until resM.groupCount()) { + for (groupIndex in 0..resM.groupCount()) { info.add(resM.group(groupIndex)) } books.add(info)