mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Update Slash Command Name regex (#4102)
* Update Slash Command Command Name regex * Update comments to reflect the change * Use the correct apostrophe in the regex While the docs use the regular ', discord accepts the unicode apostrophe ʼ.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const SLASH_COMMANDS_NAME_REGEX = /^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/u
|
||||
export const SLASH_COMMANDS_NAME_REGEX = /^[-_ʼ\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/u
|
||||
export const CONTEXT_MENU_COMMANDS_NAME_REGEX = /^[\w-\s]{1,32}$/
|
||||
export const CHANNEL_MENTION_REGEX = /<#[0-9]+>/g
|
||||
export const DISCORD_SNOWFLAKE_REGEX = /^(?<id>\d{17,19})$/
|
||||
|
||||
Reference in New Issue
Block a user