From 256bb18a36856249bcc737fb9eeacac71197e747 Mon Sep 17 00:00:00 2001 From: Palloxin <75091899+Palloxin@users.noreply.github.com> Date: Sun, 1 Dec 2024 15:05:24 +0100 Subject: [PATCH] FWN: better regex + another case (#1207) * FWN: better regex + another case * lint * forgot last case --- src/plugins/english/freewebnovel.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/plugins/english/freewebnovel.ts b/src/plugins/english/freewebnovel.ts index b358953d1..58e199d65 100644 --- a/src/plugins/english/freewebnovel.ts +++ b/src/plugins/english/freewebnovel.ts @@ -116,13 +116,10 @@ class FreeWebNovel implements Plugin.PluginBase { const chapterText = loadedCheerio('div.txt').html() || ''; return chapterText .replace( - /(?:(?<=
\s*)(?:This (?:chapter is updated by|content is taken from)|Follow current novels on) )?[ƒfF][Rrɾг][Eēeё][Eēёe][Wwω][Eёēe][Bbɓ][Nnɳη][Oø૦ѳσo][Vѵv][Eёeē][Llℓɭ]\.\s?[Cƈcç][O૦σøoѳ][M๓ɱm]\.?/g, - '', + /
\s*(?:(?:This (?:chapter is updated by|content is taken from)|Follow current novels on|Updated from) )?(?:[ƒfF][Rrɾг][Eēeё][Eēёe][Wwω][Eёēe][Bbɓ][Nnɳη][Oø૦ѳσo][Vѵv][Eёeē][LlℓɭI\|]\.\s?[Cƈcç][O૦σøoѳ][M๓ɱm]|ꜰʀᴇᴇᴡᴇʙɴᴏᴠᴇʟ)\.?/g, + '
', ) - .replace( - /(?<=
\s*)Visit for the best novel reading experience\.?/g, - '', - ); + .replace(/
\s*Visit for the best novel reading experience\.?/g, '
');
}
async searchNovels(searchTerm: string): Promise