diff --git a/src/generate/index.js b/src/generate/index.js index b9b7e21..05fb9dd 100644 --- a/src/generate/index.js +++ b/src/generate/index.js @@ -44,6 +44,7 @@ function formatLine(contributors) { } function generateContributorsList(options, contributors) { + const contributorsPerLine = options.contributorsPerLine || 7 return _.flow( _.sortBy(contributor => { if (options.contributorsSortAlphabetically) { @@ -53,7 +54,7 @@ function generateContributorsList(options, contributors) { _.map(function formatEveryContributor(contributor) { return formatContributor(options, contributor) }), - _.chunk(options.contributorsPerLine), + _.chunk(contributorsPerLine), _.map(formatLine), _.join('\n \n \n '), newContent => {