From 167bed22a1b878455e712866253843c305307ba9 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Thu, 12 Dec 2024 16:30:17 +0100 Subject: [PATCH] fix: application command regex expansion --- DisCatSharp.Common/RegularExpressions/DiscordRegEx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DisCatSharp.Common/RegularExpressions/DiscordRegEx.cs b/DisCatSharp.Common/RegularExpressions/DiscordRegEx.cs index 7eb3c42ff..b964fea70 100644 --- a/DisCatSharp.Common/RegularExpressions/DiscordRegEx.cs +++ b/DisCatSharp.Common/RegularExpressions/DiscordRegEx.cs @@ -55,7 +55,7 @@ public static partial class DiscordRegEx [GeneratedRegex(@"^(https?:\/\/)?(www\.|canary\.|ptb\.|staging\.)?(discord|discordapp)(\.com|\.co)\/events\/(?\d+)\/(?\d+)$", RegexOptions.Compiled | RegexOptions.ECMAScript)] public static partial Regex EventRegex(); - [GeneratedRegex(@"^[-_'[\p{L}\p{N}\u0900-\u097F\u0E00-\u0E7F]]{1,32}$", RegexOptions.Compiled | RegexOptions.ECMAScript)] + [GeneratedRegex(@"^[\p{Ll}\p{Lt}\w_'-]{1,32}$", RegexOptions.Compiled | RegexOptions.ECMAScript)] public static partial Regex ApplicationCommandNameRegex(); [GeneratedRegex(@"(?:https?:\/\/)?(www\.|canary\.|ptb\.|staging\.)?(discord|discordapp)(\.com|\.co)\/api\/(?:v\d\/)?webhooks\/(?\d+)\/(?[A-Za-z0-9_\-]+)", RegexOptions.Compiled | RegexOptions.ECMAScript)]