From 21e7b5eb441f161074ae37417c04bc358bcf4b6b Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 22 May 2022 21:15:35 +1000 Subject: [PATCH] don't escape formatting characters in urls --- src/handler/discord.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/discord.js b/src/handler/discord.js index 6accd07..3065291 100644 --- a/src/handler/discord.js +++ b/src/handler/discord.js @@ -73,7 +73,7 @@ module.exports = class { const mapped_username = `${event.type == "minetest" ? "" : "@" + event.name}`; // escape formatting characters const escaped_username = event.username.replace(/([*_`~|])/g, "\\$1"); - const escaped_message = event.message.replace(/([*_`~|])/g, "\\$1"); + const escaped_message = event.message.replace(/(?