From 0ff4bde8e9fd5d079450a4b4f951609ece555802 Mon Sep 17 00:00:00 2001 From: NoobDeveloper412 Date: Sat, 28 Sep 2024 22:40:37 +0500 Subject: [PATCH] Added the white text. --- utils/captionParser.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/captionParser.js b/utils/captionParser.js index 4103f5f..6b60719 100644 --- a/utils/captionParser.js +++ b/utils/captionParser.js @@ -1,5 +1,4 @@ export function parseAndWrapCaptions(caption) { - console.log(caption) return caption.replace(/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/g, (match,text, content) => { // Split the content by spaces to identify potential URLs const parts = content.split(' '); @@ -10,7 +9,7 @@ export function parseAndWrapCaptions(caption) { // If a URL is found, wrap the content in an anchor tag using the first URL return `${text}`; } else {