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 23434f0 commit 21caddbCopy full SHA for 21caddb
pydis_core/utils/regex.py
@@ -4,13 +4,13 @@
4
5
DISCORD_INVITE = re.compile(
6
r"(https?://)?(www\.)?" # Optional http(s) and www.
7
+ r"(discord(app)?)?" # Optional discord(app)
8
r"("
- 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
13
- r"((?<!\w)([.,]|dot))gg" # or .gg
+ r"([.,]|dot)gg|" # Could be .gg
+ r"([.,]|dot)com|" # or .com
+ r"([.,]|dot)me|" # or .me
+ r"([.,]|dot)li|" # or .li
+ r"([.,]|dot)io" # or .io
14
r")"
15
r"(/|slash|\\)" # / or \ or 'slash'
16
r"(?P<invite>\S+)", # the invite code itself
0 commit comments