improve NOT_IN_CODE_OR_LINKS

pull/166/head
Aevann 2023-07-03 02:44:37 +03:00
parent 7c040367fa
commit 8c08818d35
1 changed files with 1 additions and 1 deletions

View File

@ -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)