diff options
author | 2024-11-23 21:11:13 +0000 | |
---|---|---|
committer | 2024-11-23 21:13:04 +0000 | |
commit | 93ce65f58e1b79a7a887ed82c64dd976596b6bc0 (patch) | |
tree | 36b429e2c313ddf900f2c22ae666910865f16733 | |
parent | Drop io and li from invite regex (diff) |
Escape backslashes in invite regex
-rw-r--r-- | pydis_core/utils/regex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_core/utils/regex.py b/pydis_core/utils/regex.py index 9d245c9b..8726020d 100644 --- a/pydis_core/utils/regex.py +++ b/pydis_core/utils/regex.py @@ -3,7 +3,7 @@ import re DISCORD_INVITE = re.compile( - r"(https?://)?(www\.)?" # Optional http(s) and www. + r"(https?:\/\/)?(www\.)?" # Optional http(s) and www. r"(discord(app)?)?" # Optional discord(app) r"([.,]|dot)" # Various characters to cover dots r"(" |