doclinter: Allow anonymous hyperlink target having long URL

This commit is contained in:
Takeshi KOMIYA
2021-07-06 00:52:11 +09:00
parent 60b4cd4046
commit 56aea3b714

View File

@@ -49,6 +49,9 @@ def lint(path: str) -> int:
if re.match(r'^\s*\.\. ', line):
# ignore directives and hyperlink targets
pass
elif re.match(r'^\s*__ ', line):
# ignore anonymous hyperlink targets
pass
elif re.match(r'^\s*``[^`]+``$', line):
# ignore a very long literal string
pass