From 9ddb4552fef65c906a9fd9572e1cb6c7ef4b5cfc Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 2 Mar 2018 01:51:29 +0000 Subject: [PATCH] Angle bracketed links to display without them --- webapp/titanembeds/static/js/embed.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 9f48ec2..3c83af9 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -1137,6 +1137,8 @@ message.content = parse_message_markdown(message.content); message = parse_channels_in_message(message); message = parse_emoji_in_message(message); + message.content = message.content.replace(/<https:\/\/(.*?)>/g, "https://$1"); + message.content = message.content.replace(/<http:\/\/(.*?)>/g, "http://$1"); var username = message.author.username; if (message.author.nickname) { username = message.author.nickname;