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 bdaaa2e commit 21a32deCopy full SHA for 21a32de
pydis_core/utils/regex.py
@@ -6,8 +6,10 @@
6
r"(https?://)?(www\.)?" # Optional http(s) and www.
7
r"(discord(app)?)?" # Optional discord(app)
8
r"([.,]|dot)" # Various characters to cover dots
9
- r"(gg|com|me|li|io)" # A few TLDs that embed within discord
10
- r"((/|slash|\\)(invite))?" # / or \ or 'slash' invite
+ r"("
+ r"(gg|me|li|io)" # A few TLDs that embed within discord
11
+ r"|com(\/|slash|\\)invite" # Only match com/invite
12
+ r")"
13
r"(/|slash|\\)" # / or \ or 'slash'
14
r"(?P<invite>\S+)", # the invite code itself
15
flags=re.IGNORECASE
0 commit comments