diff --git a/deno/globals.ts b/deno/globals.ts index a2154ace..8169a36c 100644 --- a/deno/globals.ts +++ b/deno/globals.ts @@ -51,7 +51,7 @@ export const FormattingPatterns = { * The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression */ SlashCommand: - /<\/(?(?[\w-]{1,32})(?: (?[\w-]{1,32}))?(?: (?[\w-]{1,32}))?):(?\d{17,20})>/, + /<\/(?(?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32})(?: (?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?(?: (?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?):(?\d{17,20})>/u, /** * Regular expression for matching a custom emoji, either static or animated * diff --git a/globals.ts b/globals.ts index a2154ace..8169a36c 100644 --- a/globals.ts +++ b/globals.ts @@ -51,7 +51,7 @@ export const FormattingPatterns = { * The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression */ SlashCommand: - /<\/(?(?[\w-]{1,32})(?: (?[\w-]{1,32}))?(?: (?[\w-]{1,32}))?):(?\d{17,20})>/, + /<\/(?(?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32})(?: (?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?(?: (?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?):(?\d{17,20})>/u, /** * Regular expression for matching a custom emoji, either static or animated *