From c34fd9438cc24481a7103cbb3065abfb0b31313f Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 19 Oct 2016 05:02:51 +0200 Subject: [PATCH] invite filtering will block discord.me links now --- src/NadekoBot/_Extensions/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/_Extensions/Extensions.cs b/src/NadekoBot/_Extensions/Extensions.cs index 60aa3cf4..2ddd8f59 100644 --- a/src/NadekoBot/_Extensions/Extensions.cs +++ b/src/NadekoBot/_Extensions/Extensions.cs @@ -338,7 +338,7 @@ namespace NadekoBot.Extensions return imageStream; } - private static readonly Regex filterRegex = new Regex(@"(?:discord(?:\.gg|app\.com\/invite)\/(?([\w]{16}|(?:[\w]+-?){3})))", RegexOptions.Compiled | RegexOptions.IgnoreCase); + private static readonly Regex filterRegex = new Regex(@"(?:discord(?:\.gg|.me|app\.com\/invite)\/(?([\w]{16}|(?:[\w]+-?){3})))", RegexOptions.Compiled | RegexOptions.IgnoreCase); public static bool IsDiscordInvite(this string str) => filterRegex.IsMatch(str);