Skip to content

Commit bafaf69

Browse files
committed
Add an optional capture for /invite to invite regex
1 parent 21caddb commit bafaf69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydis_core/utils/regex.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
r"([.,]|dot)li|" # or .li
1313
r"([.,]|dot)io" # or .io
1414
r")"
15+
r"((/|slash|\\)(invite))?" # / or \ or 'slash' invite
1516
r"(/|slash|\\)" # / or \ or 'slash'
1617
r"(?P<invite>\S+)", # the invite code itself
1718
flags=re.IGNORECASE

0 commit comments

Comments
 (0)