File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 55DISCORD_INVITE = re .compile (
66 r"(https?://)?(www\.)?" # Optional http(s) and www.
77 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
8+ r"discord(app)?([.,]|dot)gg|" # Could be discord(app).gg
9+ r"discord(app)?([.,]|dot)com|" # or discord(app).com/invite
10+ r"discord(app)?([.,]|dot)me|" # or discord(app).me
11+ r"discord(app)?([.,]|dot)li|" # or discord(app).li
12+ r"discord(app)?([.,]|dot)io|" # or discord(app).io
1413 r"((?<!\w)([.,]|dot))gg" # or .gg
1514 r")"
1615 r"((/|slash|\\)(invite))?" # / or \ or 'slash' invite
You can’t perform that action at this time.
0 commit comments