From 626b5ede38687fa5d17f23975213221cd9a2dadf Mon Sep 17 00:00:00 2001 From: maaa Date: Mon, 29 Apr 2024 23:12:42 +0200 Subject: [PATCH] add media1.tenor.com --- static/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/chat.js b/static/js/chat.js index abd5cfc..d49e535 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -9,7 +9,7 @@ function addMessage(content, created, creator, roomid) { const messageParagraph = document.createElement("p"); const timeParagraph = document.createElement("p"); - const hideRegex = /(https?:\/\/(?:cdn\.discordapp\.com|media\.discordapp\.net|media\.tenor\.com|i\.imgur\.com)\/.+?\.(?:png|apng|webp|svg|jpg|jpeg|gif))(?=$|\s)/gi; + const hideRegex = /(https?:\/\/(?:cdn\.discordapp\.com|media\.discordapp\.net|media\.tenor\.com|media1\.tenor\.com|i\.imgur\.com)\/.+?\.(?:png|apng|webp|svg|jpg|jpeg|gif))(?=$|\s)/gi; let messageContent = content.replace(hideRegex, ""); messageParagraph.innerText = `${creator}: ${messageContent}`;