From 143f6cc3c9939c2f816057bf68dea7f68b05c15a Mon Sep 17 00:00:00 2001 From: lord-ne <34069872+lord-ne@users.noreply.github.com> Date: Thu, 2 Jun 2022 17:48:12 -0400 Subject: [PATCH] [Dynasty] Update chapter regex (#12037) * Allow underscores in chapter numbers * Update extVersionCode --- src/en/dynasty/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/dynasty/DynastySeries.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/dynasty/build.gradle b/src/en/dynasty/build.gradle index 4d64667b0..c7555c3c2 100644 --- a/src/en/dynasty/build.gradle +++ b/src/en/dynasty/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Dynasty' pkgNameSuffix = 'en.dynasty' extClass = '.DynastyFactory' - extVersionCode = 17 + extVersionCode = 18 } apply from: "$rootDir/common.gradle" diff --git a/src/en/dynasty/src/eu/kanade/tachiyomi/extension/en/dynasty/DynastySeries.kt b/src/en/dynasty/src/eu/kanade/tachiyomi/extension/en/dynasty/DynastySeries.kt index 4872a6078..4f4c18ec8 100644 --- a/src/en/dynasty/src/eu/kanade/tachiyomi/extension/en/dynasty/DynastySeries.kt +++ b/src/en/dynasty/src/eu/kanade/tachiyomi/extension/en/dynasty/DynastySeries.kt @@ -22,7 +22,7 @@ class DynastySeries : DynastyScans() { override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable { if (query.startsWith("manga:chapters:")) { - val seriesName = Regex("""manga:chapters:(.*?)_ch\d+""").matchEntire(query)?.groups?.get(1)?.value + val seriesName = Regex("""manga:chapters:(.*?)_ch[0-9_]+""").matchEntire(query)?.groups?.get(1)?.value if (seriesName != null) { return super.fetchSearchManga(page, "manga:$searchPrefix:$seriesName", filters) }