summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorZachery Notz <zachery_notz@enigma.mil>2020-05-23 19:31:24 -0700
committerZachery Notz <zachery_notz@enigma.mil>2020-05-23 19:31:24 -0700
commit1a69fea1b06215ecc0939c743b5157c09f0d8734 (patch)
tree9a9863d99bc349a93cce41678e9a01585f42a2f7
parentImproved regex so that TELLRAW templates can use variables more than once (diff)
downloadshulker-1a69fea1b06215ecc0939c743b5157c09f0d8734.tar.gz
shulker-1a69fea1b06215ecc0939c743b5157c09f0d8734.zip
Fixed user mention detection
-rw-r--r--src/Discord.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Discord.ts b/src/Discord.ts
index c9b3b74..ffdd05b 100644
--- a/src/Discord.ts
+++ b/src/Discord.ts
@@ -146,7 +146,7 @@ class Discord {
   }
 
   private replaceDiscordMentions(message: string): string {
-    const possibleMentions = message.match(/@(\S+)/gim)
+    const possibleMentions = message.match(/@*.*#[0-9]{4}/gim)
     if (possibleMentions) {
       for (let mention of possibleMentions) {
         const mentionParts = mention.split('#')
pan title='2017-07-31 20:15:42 -0400'>2017-07-31Perform enter as two moves rather than a loopJune McEnroe 2017-07-31Track tile access countsJune McEnroe 2017-07-31Adjust move speed in clientJune McEnroe 2017-07-31Handle large movesJune McEnroe 2017-07-30Optimize builds for chrootJune McEnroe 2017-07-30Persist bright across color changesJune McEnroe 2017-07-30Add index.htmlJune McEnroe 2017-07-30Add snapshot.shJune McEnroe 2017-07-30Fix termcap patch for background colorsJune McEnroe 2017-07-30Update helpJune McEnroe 2017-07-30Fix help to track colorJune McEnroe 2017-07-30Support background colorsJune McEnroe 2017-07-30Track color only client-sideJune McEnroe 2017-07-30Add ostensible support for background colorsJune McEnroe 2017-07-30Add tile create and access timestampsJune McEnroe 2017-07-30Assert stable struct Tile field offsetsJune McEnroe 2017-07-30Add chroot.shJune McEnroe 2017-07-30Add ` commandJune McEnroe 2017-07-30Add sshd_configJune McEnroe 2017-07-30Add termcap patchJune McEnroe