From 05d058cbf3bf851c9217d9dce72a2e88e9398b68 Mon Sep 17 00:00:00 2001 From: pakkographic Date: Mon, 2 Sep 2024 10:17:44 +0200 Subject: [PATCH] customID requirement changes --- lib/util/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/Util.ts b/lib/util/Util.ts index 51cc0b5..1f7fe61 100644 --- a/lib/util/Util.ts +++ b/lib/util/Util.ts @@ -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, " +