diff options
author | Marshall Oliver <olivermt91@gmail.com> | 2020-08-04 17:14:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 17:14:14 -0400 |
commit | 4111e7ad4347387fcf21a9554c3c8ec9d9723bdf (patch) | |
tree | 2806cb96dd8a83022f505e8f6cb5a68c77e71f06 /src | |
parent | Merge pull request #57 from FeikoJoosten/patch-1 (diff) | |
download | shulker-4111e7ad4347387fcf21a9554c3c8ec9d9723bdf.tar.gz shulker-4111e7ad4347387fcf21a9554c3c8ec9d9723bdf.zip |
Update regex for replaceDiscordMentions
Diffstat (limited to 'src')
-rw-r--r-- | src/Discord.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Discord.ts b/src/Discord.ts index ffdd05b..ea84d3e 100644 --- a/src/Discord.ts +++ b/src/Discord.ts @@ -146,7 +146,7 @@ class Discord { } private replaceDiscordMentions(message: string): string { - const possibleMentions = message.match(/@*.*#[0-9]{4}/gim) + const possibleMentions = message.match(/@[^#\s]*[#]?[0-9]{4}/gim) if (possibleMentions) { for (let mention of possibleMentions) { const mentionParts = mention.split('#') |