You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webhook url validation regex fails when used with various different cultures. You can basically add 'RegexOptions.CultureInvariant' to WebhookUrlRegex object to mitigate the issue.
Hello,
Webhook url validation regex fails when used with various different cultures. You can basically add 'RegexOptions.CultureInvariant' to WebhookUrlRegex object to mitigate the issue.
private static Regex WebhookUrlRegex = new Regex(@"^.*(discord|discordapp)\.com\/api\/webhooks\/([\d]+)\/([a-z0-9_-]+)$", RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase);
Thanks...
The text was updated successfully, but these errors were encountered: