aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-11 19:43:38 +0200
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-11 19:43:38 +0200
commit6c8759b7b74bfe0321baa4424b2f492d98b83c2c (patch)
tree6b5975ac2302fabce11f870ce695f3b5e9b8e716 /src
parentd2a020837267bf024f508b402f596f8e242672ed (diff)
downloadtanzanite-6c8759b7b74bfe0321baa4424b2f492d98b83c2c.tar.gz
tanzanite-6c8759b7b74bfe0321baa4424b2f492d98b83c2c.tar.bz2
tanzanite-6c8759b7b74bfe0321baa4424b2f492d98b83c2c.zip
fix(uuid): use str.match instead of regex.exec
Diffstat (limited to 'src')
-rw-r--r--src/commands/utilities/uuid.ts2
1 files changed, 1 insertions, 1 deletions
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];