优化搜索URL转换

pull/46/head
Celeter 5 years ago
parent b62eb40eee
commit 6c6c84c7f3
  1. 1
      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("<?searchPage([-+]1)>?".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"))

Loading…
Cancel
Save