Skip to content

Commit 7a0f529

Browse files
authored
Update discord invite regex
Allows for more than one `\` that occurs before the invite code, which is apparently valid.
1 parent 1683547 commit 7a0f529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydis_core/utils/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
r"(gg|me)" # TLDs that embed within discord
1111
r"|com(\/|slash|\\)invite" # Only match com/invite
1212
r")"
13-
r"(/|slash|\\)" # / or \ or 'slash'
13+
r"(/|slash|\\+)" # / or 'slash' or 1+ of \
1414
r"(?P<invite>\S+)", # the invite code itself
1515
flags=re.IGNORECASE
1616
)

0 commit comments

Comments
 (0)