From 6c8759b7b74bfe0321baa4424b2f492d98b83c2c Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 11 Jul 2022 19:43:38 +0200 Subject: fix(uuid): use str.match instead of regex.exec --- src/commands/utilities/uuid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commands/utilities/uuid.ts b/src/commands/utilities/uuid.ts index 44cfeda..3f99e66 100644 --- a/src/commands/utilities/uuid.ts +++ b/src/commands/utilities/uuid.ts @@ -49,7 +49,7 @@ export default class UuidCommand extends BushCommand { message: CommandMessage | SlashMessage, args: { ign: ArgType<'regex'> | string; dashed: ArgType<'flag'> } ) { - if (typeof args.ign === 'string') args.ign = { match: /\w{1,16}/im.exec(args.ign)!, matches: [] }; + if (typeof args.ign === 'string') args.ign = { match: args.ign.match(/\w{1,16}/im)!, matches: [] }; if (!args.ign.match) return await message.util.reply(`${emojis.error} Please enter a valid ign.`); const readableIGN = args.ign.match[0]; -- cgit