From 6c6c84c7f300bfe7c79d733afd6bac476f4a2879 Mon Sep 17 00:00:00 2001 From: Celeter Date: Mon, 4 Nov 2019 23:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2URL?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/storage/OldRule.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/help/storage/OldRule.kt b/app/src/main/java/io/legado/app/help/storage/OldRule.kt index 343a54087..73bf9b720 100644 --- a/app/src/main/java/io/legado/app/help/storage/OldRule.kt +++ b/app/src/main/java/io/legado/app/help/storage/OldRule.kt @@ -114,6 +114,7 @@ object OldRule { } url = url.replace("{", "<").replace("}", ">") url = url.replace("searchKey", "{{key}}") + url = url.replace("?".toRegex(), "{{page$1}}") url = url.replace("searchPage", "{{page}}") for ((index, item) in jsList.withIndex()) { url = url.replace("$$index", item.replace("searchKey", "key").replace("searchPage", "page"))