Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

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

0 comments on commit 1891a62

Please sign in to comment.