Skip to content

Commit 903c7a6

Browse files
authored
fix: regexp
1 parent d169067 commit 903c7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/util/regexes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export const mentionableRegexp = /^(?:<@!?)?(?:<@&?)?([0-9]+)>?$/;
3232
* Regex for command and option names
3333
* @raw `/^[\P{Lu}\p{N}_-]+$/u`
3434
*/
35-
export const commandAndOptionNameRegexp = /^[\P{Lu}\p{N}_-]+$/u;
35+
export const commandAndOptionNameRegexp = /^[\P{Lu}\p{N}_-a-A-zZ]+|[\s]$/u;

0 commit comments

Comments
 (0)