mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Angle bracketed links to display without them
This commit is contained in:
parent
572a3f0341
commit
9ddb4552fe
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user