WoopRead: Remove \n from image links

This commit is contained in:
Rajarshee Chatterjee
2021-05-30 14:16:55 +05:30
parent 7bd4de9131
commit 96a0f33be5
+1
View File
@@ -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;