Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 from Garlic-Team/dev
Browse files Browse the repository at this point in the history
v1.0.4
  • Loading branch information
S222em authored Nov 26, 2021
2 parents 5711209 + 0e35b8b commit a05345f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/managers/GComponentHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a05345f

Please sign in to comment.