Angle bracketed links to display without them

This commit is contained in:
Jeremy Zhang 2018-03-02 01:51:29 +00:00
parent 572a3f0341
commit 9ddb4552fe

View File

@ -1137,6 +1137,8 @@
message.content = parse_message_markdown(message.content); message.content = parse_message_markdown(message.content);
message = parse_channels_in_message(message); message = parse_channels_in_message(message);
message = parse_emoji_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; var username = message.author.username;
if (message.author.nickname) { if (message.author.nickname) {
username = message.author.nickname; username = message.author.nickname;