There was an error while loading. Please reload this page.
1 parent 03a64f2 commit d334d78Copy full SHA for d334d78
1 file changed
tools/verifygitlog.py
@@ -57,8 +57,9 @@ def warning(err):
57
# Subject line.
58
subject_line = raw_body[0]
59
very_verbose("subject_line", subject_line)
60
- if not re.match(r"^[^!]+: [A-Z]+.+ .+\.$", subject_line):
61
- error("Subject line should contain ': ' and end in '.': " + subject_line)
+ subject_line_format = r"^[^!]+: [A-Z]+.+ .+\.$"
+ if not re.match(subject_line_format, subject_line):
62
+ error("Subject line should match " + repr(subject_line_format) + ": " + subject_line)
63
if len(subject_line) >= 73:
64
error("Subject line should be 72 or less characters: " + subject_line)
65
0 commit comments