From 658cbe9995b0003bc5193e48ec8dc4abda46bdb2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Sep 2019 15:17:37 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 <= ' ' }) } } }