diff options
Diffstat (limited to 'pydis_core/utils')
-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"(" |