diff options
-rw-r--r-- | bot/exts/filtering/_filter_lists/invite.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/filtering/_filter_lists/invite.py b/bot/exts/filtering/_filter_lists/invite.py index 6e3ce6648..cfc22c56e 100644 --- a/bot/exts/filtering/_filter_lists/invite.py +++ b/bot/exts/filtering/_filter_lists/invite.py @@ -20,9 +20,9 @@ if typing.TYPE_CHECKING: REFINED_INVITE_CODE = re.compile( - r"(?P<invite>[a-zA-Z0-9/]+)" # The supposedly real invite code. - r"(?:[^a-zA-Z0-9/].*)?" # Ignoring anything that may come after an invalid character. - r"$" # Up until the end of the string. + r"(?P<invite>[a-zA-Z0-9/_-]+)" # The supposedly real invite code. + r"(?:[^a-zA-Z0-9/].*)?" # Ignoring anything that may come after an invalid character. + r"$" # Up until the end of the string. ) |