Skip to content

Commit

Permalink
fix: regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom authored May 1, 2022
1 parent d169067 commit 903c7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/regexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export const mentionableRegexp = /^(?:<@!?)?(?:<@&?)?([0-9]+)>?$/;
* Regex for command and option names
* @raw `/^[\P{Lu}\p{N}_-]+$/u`
*/
export const commandAndOptionNameRegexp = /^[\P{Lu}\p{N}_-]+$/u;
export const commandAndOptionNameRegexp = /^[\P{Lu}\p{N}_-a-A-zZ]+|[\s]$/u;

0 comments on commit 903c7a6

Please sign in to comment.