utils: fix role mention regex

This commit is contained in:
Dragory 2019-02-17 16:01:04 +02:00
parent 2e13495d77
commit 82f73a8f51

View file

@ -203,7 +203,7 @@ export const emptyEmbedValue = "\u200b";
export const embedPadding = "\n" + emptyEmbedValue;
export const userMentionRegex = /<@!?([0-9]+)>/g;
export const roleMentionRegex = /<&([0-9]+)>/g;
export const roleMentionRegex = /<@&([0-9]+)>/g;
export function getUserMentions(str: string) {
const regex = new RegExp(userMentionRegex.source, "g");