mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Allow changelog entries to have URLs exceeding 80 char limit.
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
@ -220,7 +220,8 @@ class ChangeLog:
|
|||||||
|
|
||||||
body_split = category.body.splitlines()
|
body_split = category.body.splitlines()
|
||||||
for line_number, line in enumerate(body_split, 1):
|
for line_number, line in enumerate(body_split, 1):
|
||||||
if len(line) > MAX_LINE_LENGTH:
|
if not re.match('.*http[s]?://.*', line.decode('utf-8')) and \
|
||||||
|
len(line) > MAX_LINE_LENGTH:
|
||||||
raise InputFormatError(filename,
|
raise InputFormatError(filename,
|
||||||
category.body_line + line_number,
|
category.body_line + line_number,
|
||||||
'Line is longer than allowed: Length {} (Max {})',
|
'Line is longer than allowed: Length {} (Max {})',
|
||||||
|
Reference in New Issue
Block a user