From 96a0f33be536fa0f515da793cfe4c3fec4358aeb Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Sun, 30 May 2021 14:16:55 +0530 Subject: [PATCH] WoopRead: Remove \n from image links --- src/en/woopread/WoopReadScraper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/en/woopread/WoopReadScraper.js b/src/en/woopread/WoopReadScraper.js index 95c7f0b..8cbcd85 100644 --- a/src/en/woopread/WoopReadScraper.js +++ b/src/en/woopread/WoopReadScraper.js @@ -140,6 +140,7 @@ const chapterScraper = async (req, res) => { const chapterName = $("h1#chapter-heading").text(); let chapterText = $(".reading-content").html(); chapterText = parseHtml(chapterText); + chapterText = chapterText.replace(/(?<=[[])[\n](?=[h])/g, ""); let nextChapter = null;