From de4e207d85c32b4246f216ca749df582c0288822 Mon Sep 17 00:00:00 2001 From: mierenmanz Date: Thu, 29 Apr 2021 12:43:03 +0200 Subject: [PATCH] remove global to fix bug --- src/utils/command.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/command.ts b/src/utils/command.ts index 6ae5901..5b26af5 100644 --- a/src/utils/command.ts +++ b/src/utils/command.ts @@ -6,9 +6,9 @@ interface MentionToRegex { } const mentionToRegex: MentionToRegex = { - mentionUser: /<@!?(\d{17,19})>/g, - mentionRole: /<@&(\d{17,19})>/g, - mentionChannel: /<#(\d{17,19})>/g + mentionUser: /<@!?(\d{17,19})>/, + mentionRole: /<@&(\d{17,19})>/, + mentionChannel: /<#(\d{17,19})>/ } export type CommandArgumentMatchTypes =