diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 81e454a12..144de1a49 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -7,6 +7,7 @@ from .config.const import * 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('(?