Skip to content

Commit

Permalink
Update DiscordRegEx.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 4, 2024
1 parent 8d055b5 commit c775422
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 @@ -52,7 +52,7 @@ public static partial class DiscordRegEx
[GeneratedRegex(@"^(https?:\/\/)?(www\.|canary\.|ptb\.)?(discord|discordapp)\.com\/events\/(?<guild>\d+)\/(?<event>\d+)$", RegexOptions.Compiled | RegexOptions.ECMAScript)]
public static partial Regex EventRegex();

[GeneratedRegex(@"^[\p{Ll}\p{Lt}-_]{1,32}$", RegexOptions.Compiled | RegexOptions.ECMAScript)]
[GeneratedRegex(@"^[\p{Ll}\p{Lt}_-]{1,32}$", RegexOptions.Compiled | RegexOptions.ECMAScript)]
public static partial Regex ApplicationCommandNameRegex();

[GeneratedRegex(@"(?:https?:\/\/)?discord(?:app)?.com\/api\/(?:v\d\/)?webhooks\/(?<id>\d+)\/(?<token>[A-Za-z0-9_\-]+)", RegexOptions.Compiled | RegexOptions.ECMAScript)]
Expand Down

0 comments on commit c775422

Please sign in to comment.