diff --git a/package.json b/package.json index 98cac74..8dcb208 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gcommands/components", - "version": "1.0.3", + "version": "1.0.4", "description": "Component handler for discord.js and gcommands", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/managers/GComponentHandler.ts b/src/managers/GComponentHandler.ts index 20d523e..a5e0a29 100644 --- a/src/managers/GComponentHandler.ts +++ b/src/managers/GComponentHandler.ts @@ -20,7 +20,7 @@ export class GComponentHandler { if (!interaction || !interaction.isMessageComponent()) return; try { - const regex = new RegExp('[A-Za-z]+'); + const regex = new RegExp('[A-Za-z1-9]+', 'g'); const args = interaction.customId.match(regex); const name = args.shift();