diff --git a/files/helpers/regex.py b/files/helpers/regex.py index db522b57a..dcc947663 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -5,7 +5,7 @@ from typing import List, Optional, Union from .config.const import * -NOT_IN_CODE_OR_LINKS = '(?!([^<]*<\/(code|pre|a)>|[^`]*`))' +NOT_IN_CODE_OR_LINKS = '(?!([^<]*<\/(code|pre|a)>|[^`\n]*`|(.|\n)*```))' valid_username_regex = re.compile("^[\w\-]{3,25}$", flags=re.A)