mirror of https://github.com/zulip/zulip.git
lint: Be more permissive with Markdown links.
This commit is contained in:
parent
f2980f2504
commit
a64a1de023
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue