prevent extra space in changelog

This commit is contained in:
pooya parsa 2019-05-26 00:28:00 +04:30
parent 5f72ad5358
commit 2b317f733a

View File

@ -136,7 +136,7 @@ function generateMarkDown(commits) {
for (const scopeName in scopeGroups) { for (const scopeName in scopeGroups) {
markdown += '- `' + scopeName + '`' + '\n' markdown += '- `' + scopeName + '`' + '\n'
for (const commit of scopeGroups[scopeName]) { for (const commit of scopeGroups[scopeName]) {
markdown += ' - ' + commit.references.join(', ') + ' ' + commit.message.replace(/^(.)/, v => v.toUpperCase()) + '\n' markdown += ' - ' + commit.references.join(', ') + (commit.references.length ? ' ' : '') + commit.message.replace(/^(.)/, v => v.toUpperCase()) + '\n'
} }
} }
} }