mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Add discord.com to supported domains in INVITE_URL_RE (#4012)
* Support for discord.com * Modified to support discord.com requiring `/invite` * Non-capturing
This commit is contained in:
parent
a96e814af4
commit
632840384b
@ -16,7 +16,7 @@ __all__ = [
|
||||
# regexes
|
||||
URL_RE = re.compile(r"(https?|s?ftp)://(\S+)", re.I)
|
||||
|
||||
INVITE_URL_RE = re.compile(r"(discord\.(?:gg|io|me|li)|discordapp\.com\/invite)\/(\S+)", re.I)
|
||||
INVITE_URL_RE = re.compile(r"(discord\.(?:gg|io|me|li)|discord(?:app)?\.com\/invite)\/(\S+)", re.I)
|
||||
|
||||
MASS_MENTION_RE = re.compile(r"(@)(?=everyone|here)") # This only matches the @ for sanitizing
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user