mirror of https://github.com/python/cpython
rstlint: make the "html leaked markup" regex a bit less sensitive
This commit is contained in:
parent
ef08bde8b8
commit
3b4cf554e5
|
@ -45,7 +45,7 @@ directives = [
|
|||
all_directives = '(' + '|'.join(directives) + ')'
|
||||
seems_directive_re = re.compile(r'\.\. %s([^a-z:]|:(?!:))' % all_directives)
|
||||
default_role_re = re.compile(r'(^| )`\w([^`]*?\w)?`($| )')
|
||||
leaked_markup_re = re.compile(r'[a-z]::[^=]|:[a-z]+:|`|\.\.\s*\w+:')
|
||||
leaked_markup_re = re.compile(r'[a-z]::\s|`|\.\.\s*\w+:')
|
||||
|
||||
|
||||
checkers = {}
|
||||
|
|
Loading…
Reference in New Issue