We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8528c7f commit 9385e91Copy full SHA for 9385e91
1 file changed
pydis_core/utils/regex.py
@@ -5,12 +5,11 @@
5
DISCORD_INVITE = re.compile(
6
r"(https?://)?(www\.)?" # Optional http(s) and www.
7
r"("
8
- r"discord([.,]|dot)gg|" # Could be discord.gg
9
- r"discord([.,]|dot)com|" # or discord.com/invite
10
- r"discordapp([.,]|dot)com|" # or discordapp.com/invite
11
- r"discord([.,]|dot)me|" # or discord.me
12
- r"discord([.,]|dot)li|" # or discord.li
13
- r"discord([.,]|dot)io|" # or discord.io
+ r"discord(app)?([.,]|dot)gg|" # Could be discord(app).gg
+ r"discord(app)?([.,]|dot)com|" # or discord(app).com/invite
+ r"discord(app)?([.,]|dot)me|" # or discord(app).me
+ r"discord(app)?([.,]|dot)li|" # or discord(app).li
+ r"discord(app)?([.,]|dot)io|" # or discord(app).io
14
r"((?<!\w)([.,]|dot))gg" # or .gg
15
r")"
16
r"((/|slash|\\)(invite))?" # / or \ or 'slash' invite
0 commit comments