From f95d24375d48c4acc86154d74fc2cf5934f3e43e Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Wed, 29 Jun 2022 03:21:09 -0400 Subject: [PATCH] sonar fix --- src/commands/roll/getModifiers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/roll/getModifiers.ts b/src/commands/roll/getModifiers.ts index f4204ec..5edd86e 100644 --- a/src/commands/roll/getModifiers.ts +++ b/src/commands/roll/getModifiers.ts @@ -58,7 +58,7 @@ export const getModifiers = (m: DiscordenoMessage, args: string[], command: stri while (((i + 1) < args.length) && args[i + 1].startsWith('<@')) { log(LT.LOG, `Finding all GMs, checking args ${JSON.stringify(args)}`); // Keep looping thru the rest of the args until one does not start with the discord mention code - modifiers.gms.push(args[i + 1].replace(/[!]/g, '')); + modifiers.gms.push(args[i + 1].replace(/!/g, '')); args.splice(i + 1, 1); } if (modifiers.gms.length < 1) {