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 a907e19 commit 9b95fb9Copy full SHA for 9b95fb9
pydis_core/utils/regex.py
@@ -3,7 +3,7 @@
3
import re
4
5
DISCORD_INVITE = re.compile(
6
- r"(https?:\/\/)?(discord:\/*)?" # Optional protocols
+ r"(https?:\/\/)?(discord:\/*)?" # Optional protocols
7
r"(www\.)?" # Optional www
8
r"[@#]*" # Optional @ or # symbols
9
r"(\B|discord(app)?)" # Optional discord(app)
@@ -12,7 +12,7 @@
12
r"(gg|me)" # TLDs that embed within discord
13
r"|com(\/|slash|\\)invite" # Only match com/invite
14
r")"
15
- r"(/|slash|\\+)" # / or 'slash' or 1+ of \
+ r"(/|slash|\\+)" # / or 'slash' or 1+ of \
16
r"(?P<invite>\S+)", # the invite code itself
17
flags=re.IGNORECASE
18
)
0 commit comments