diff options
author | 2023-07-11 17:43:48 +0300 | |
---|---|---|
committer | 2023-07-11 15:43:48 +0100 | |
commit | 926b6b765fc02b2822a27f3217086fca7b0ef536 (patch) | |
tree | 3318164112a58cb960102d185871d850621f6435 | |
parent | Bump sentry-sdk from 1.26.0 to 1.28.0 (#2676) (diff) |
Additional potential symbols in valid invites (#2663)
* Additional potential symbols in valid invites
* Align comments
-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. ) |