diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index 4a958caa1..49c4f92b3 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -90,7 +90,7 @@ class AnalyzeUrl( ruleUrl = if (page <= pages.size) { ruleUrl.replace(matcher.group(), pages[page - 1].trim { it <= ' ' }) } else { - ruleUrl.replace(matcher.group(), pages[pages.size - 1].trim { it <= ' ' }) + ruleUrl.replace(matcher.group(), pages.last().trim { it <= ' ' }) } } }