From c66131c809a2eda95efffc2ee552b7e0a97392df Mon Sep 17 00:00:00 2001 From: kana-shii <79055104+kana-shii@users.noreply.github.com> Date: Sat, 30 Nov 2024 14:59:21 -0300 Subject: [PATCH] Mangago regex update (#6380) regex update --- src/en/mangago/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/mangago/build.gradle b/src/en/mangago/build.gradle index 7344c2b11..1d35c5edd 100644 --- a/src/en/mangago/build.gradle +++ b/src/en/mangago/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Mangago' extClass = '.Mangago' - extVersionCode = 22 + extVersionCode = 23 isNsfw = true } diff --git a/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt b/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt index 8d3f142df..5e05f45eb 100644 --- a/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt +++ b/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt @@ -171,7 +171,7 @@ class Mangago : ParsedHttpSource(), ConfigurableSource { override fun searchMangaNextPageSelector() = genreListingNextPageSelector private var titleRegex: Regex = - Regex("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|/.+?|⌜.+?⌝)\\s*") + Regex("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|⌜.+?⌝|⟨[^⟩]*⟩|/.+)") override fun mangaDetailsParse(document: Document) = SManga.create().apply { title = document.selectFirst(".w-title h1")!!.text()