Fix release notes rake task

It breaks when a commit message is "FIX:"
This commit is contained in:
Neil Lalonde 2019-12-05 11:53:10 -05:00
parent 50b98a47ac
commit 891b71bdf5

View File

@ -47,8 +47,12 @@ def better(line)
line = remove_prefix(line)
line = escape_brackets(line)
line[0] = '\#' if line[0] == '#'
line[0] = line[0].capitalize
"- " + line
if line[0]
line[0] = line[0].capitalize
"- " + line
else
nil
end
end
def remove_prefix(line)