Skip to content

Commit

Permalink
Update Discord invite regex to also match backslash before the invite…
Browse files Browse the repository at this point in the history
… code
  • Loading branch information
ChrisLovering committed Sep 11, 2024
1 parent 5500c5e commit 0bd32af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydis_core/utils/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
r"discord([.,]|dot)li|" # or discord.li
r"discord([.,]|dot)io|" # or discord.io.
r"((?<!\w)([.,]|dot))gg" # or .gg/
r")(/|slash)" # / or 'slash'
r")(/|slash|\\)" # / or \ or 'slash'
r"(?P<invite>\S+)", # the invite code itself
flags=re.IGNORECASE
)
Expand Down

0 comments on commit 0bd32af

Please sign in to comment.