pull/32/head
kunfei 5 years ago
parent f48aee3bb2
commit c785a08e81
  1. 4
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByRegex.kt

@ -16,7 +16,7 @@ object AnalyzeByRegex {
return if (vIndex + 1 == regs.size) { return if (vIndex + 1 == regs.size) {
// 新建容器 // 新建容器
val info = arrayListOf<String>() val info = arrayListOf<String>()
for (groupIndex in 0 until resM.groupCount()) { for (groupIndex in 0..resM.groupCount()) {
info.add(resM.group(groupIndex)) info.add(resM.group(groupIndex))
} }
info info
@ -43,7 +43,7 @@ object AnalyzeByRegex {
do { do {
// 新建容器 // 新建容器
val info = arrayListOf<String>() val info = arrayListOf<String>()
for (groupIndex in 0 until resM.groupCount()) { for (groupIndex in 0..resM.groupCount()) {
info.add(resM.group(groupIndex)) info.add(resM.group(groupIndex))
} }
books.add(info) books.add(info)

Loading…
Cancel
Save