From 02e98b6a912ddc32e2973774bc790a0f81bde4fc Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 17 Aug 2023 02:08:25 +0300 Subject: [PATCH] fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4813698#context --- files/helpers/regex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 8e4085afe..3d22ee067 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -9,8 +9,8 @@ NOT_IN_CODE_OR_LINKS = '(?!([^<]*<\/(code|pre|a)>|[^`\n]*`|(.|\n)*```))' valid_username_regex = re.compile("^[\w\-]{3,25}$", flags=re.A) valid_username_patron_regex = re.compile("^[\w\-]{1,25}$", flags=re.A) -mention_regex = re.compile('(?)!(everyone)' + NOT_IN_CODE_OR_LINKS, flags=re.A)