Skip to content

Commit

Permalink
fix: application command regex expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 12, 2024
1 parent d486d5f commit 167bed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DisCatSharp.Common/RegularExpressions/DiscordRegEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static partial class DiscordRegEx
[GeneratedRegex(@"^(https?:\/\/)?(www\.|canary\.|ptb\.|staging\.)?(discord|discordapp)(\.com|\.co)\/events\/(?<guild>\d+)\/(?<event>\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\/(?<id>\d+)\/(?<token>[A-Za-z0-9_\-]+)", RegexOptions.Compiled | RegexOptions.ECMAScript)]
Expand Down

0 comments on commit 167bed2

Please sign in to comment.