From 926b6b765fc02b2822a27f3217086fca7b0ef536 Mon Sep 17 00:00:00 2001 From: Boris Muratov <8bee278@gmail.com> Date: Tue, 11 Jul 2023 17:43:48 +0300 Subject: Additional potential symbols in valid invites (#2663) * Additional potential symbols in valid invites * Align comments --- bot/exts/filtering/_filter_lists/invite.py | 6 +++--- 1 file 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[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[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. ) -- cgit v1.2.3