Skip to content

Commit

Permalink
customID requirement changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Sep 2, 2024
1 parent fc02b37 commit 05d058c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Util {
// TODO: Enhance errors/ add more of them making them easier to understand.
for (const component of components) {
if (component.type === InteractionComponentType.BUTTON) {
const regExpCheck = /^[\d_a-z-]{1,32}$/;
const regExpCheck = /^[\w-]{1,32}$/;
if (!regExpCheck.test(component.customID))
throw new Error(
"Invalid component, customID property is considered invalid, " +
Expand Down

0 comments on commit 05d058c

Please sign in to comment.