Fix bug where message links from discord stable would be considered invalid
This commit is contained in:
parent
ad086a5e0c
commit
726ee77ed4
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ namespace Geekbot.Bot.Commands.Utils.Quote
|
|||
public class MessageLink
|
||||
{
|
||||
public readonly static Regex re = new Regex(
|
||||
@"https:\/\/(canary|ptb)?.discord(app)?.com\/channels\/(?<GuildId>\d{16,20})\/(?<ChannelId>\d{16,20})\/(?<MessageId>\d{16,20})",
|
||||
@"https:\/\/((canary|ptb)\.)?discord(app)?.com\/channels\/(?<GuildId>\d{16,20})\/(?<ChannelId>\d{16,20})\/(?<MessageId>\d{16,20})",
|
||||
RegexOptions.Compiled | RegexOptions.IgnoreCase,
|
||||
new TimeSpan(0, 0, 2));
|
||||
|
||||
|
|
Loading…
Reference in a new issue