lint: Be more permissive with Markdown links.

This commit is contained in:
Tim Abbott 2017-01-12 16:42:46 -08:00
parent f2980f2504
commit a64a1de023
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ def build_custom_checkers(by_lang):
line_length = len(line)
if (max_length is not None and line_length > max_length and
'# type' not in line and 'test' not in fn and 'example' not in fn and
not re.match("\[[a-z0-9_-]*\]: http.*", line) and
not re.match("\[[ A-Za-z0-9_:,&()-]*\]: http.*", line) and
"#ignorelongline" not in line and 'migrations' not in fn):
print("Line too long (%s) at %s line %s: %s" % (len(line), fn, i+1, line_newline_stripped))
failed = True