mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
prevent extra space in changelog
This commit is contained in:
parent
5f72ad5358
commit
2b317f733a
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user