From 8253a0ae7abb91b9c349d8c4d72c56113d8f6f56 Mon Sep 17 00:00:00 2001 From: kana-shii <79055104+kana-shii@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:31:06 -0300 Subject: [PATCH] Mangago Regex (#6099) new regex --- 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 db59825e0..7344c2b11 100644 --- a/src/en/mangago/build.gradle +++ b/src/en/mangago/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Mangago' extClass = '.Mangago' - extVersionCode = 21 + extVersionCode = 22 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 4f7fbb221..8d3f142df 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("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|/.+?|⌜.+?⌝)\\s*") override fun mangaDetailsParse(document: Document) = SManga.create().apply { title = document.selectFirst(".w-title h1")!!.text()