add media1.tenor.com

This commit is contained in:
maaa 2024-04-29 23:12:42 +02:00
parent 9d79811415
commit 626b5ede38
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ function addMessage(content, created, creator, roomid) {
const messageParagraph = document.createElement("p"); const messageParagraph = document.createElement("p");
const timeParagraph = 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, ""); let messageContent = content.replace(hideRegex, "");
messageParagraph.innerText = `${creator}: ${messageContent}`; messageParagraph.innerText = `${creator}: ${messageContent}`;