diff options
-rw-r--r-- | pydis_core/utils/regex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_core/utils/regex.py b/pydis_core/utils/regex.py index 8726020d..88a4c52f 100644 --- a/pydis_core/utils/regex.py +++ b/pydis_core/utils/regex.py @@ -3,8 +3,8 @@ import re DISCORD_INVITE = re.compile( - r"(https?:\/\/)?(www\.)?" # Optional http(s) and www. - r"(discord(app)?)?" # Optional discord(app) + r"(https?:\/\/)?(www\.)?" # Optional http(s) and www. + r"(\B|discord(app)?)" # Optional discord(app) r"([.,]|dot)" # Various characters to cover dots r"(" r"(gg|me)" # TLDs that embed within discord |