Skip to content

Commit

Permalink
fix: πŸ› pad-right
Browse files Browse the repository at this point in the history
pad-right is no longer a dependency of a dependency. because of that we
need to stop relying on it. `String.padEnd` is the correct alternative
and is supported on NodeJS>=8.2.1
  • Loading branch information
rodrigograca31 committed Nov 18, 2020
1 parent 312a74c commit 1891a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/questions/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const typeToListItem = ({types, disableEmoji}, type) => {
const prefix = emoji && !disableEmoji ? emoji + ' ' : '';

return {
name: prefix + value.padEnd(12, ' ') + description,
name: prefix + (value + ':').padEnd(12, ' ') + description,
value
};
};
Expand Down

3 comments on commit 1891a62

@streamich
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 4.5.0-commitizen-upgrade.1119 🀞 commitizen-upgrade on Travis πŸŽ‰

@streamich
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 4.5.0-commitizen-upgrade.1119 🀞 commitizen-upgrade on Travis πŸŽ‰

@streamich
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 4.5.0-commitizen-upgrade.1119 🀞 commitizen-upgrade on Travis πŸŽ‰

Please sign in to comment.