Skip to content

Commit 0bd32af

Browse files
committed
Update Discord invite regex to also match backslash before the invite code
1 parent 5500c5e commit 0bd32af

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
@@ -11,7 +11,7 @@
1111
r"discord([.,]|dot)li|" # or discord.li
1212
r"discord([.,]|dot)io|" # or discord.io.
1313
r"((?<!\w)([.,]|dot))gg" # or .gg/
14-
r")(/|slash)" # / or 'slash'
14+
r")(/|slash|\\)" # / or \ or 'slash'
1515
r"(?P<invite>\S+)", # the invite code itself
1616
flags=re.IGNORECASE
1717
)

0 commit comments

Comments
 (0)