Skip to content

Commit

Permalink
Fix: trim trailing spaces (closes #39) (#41)
Browse files Browse the repository at this point in the history
* Fix: trim trailing spaces

* Refactor: trim input inside of questions
  • Loading branch information
aichbauer authored and JPeer264 committed Oct 1, 2017
1 parent 8b8fe39 commit 67892ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const questions = (config) => {
name: 'description',
message: 'Enter your commit message:',
validate: (input) => {
const warnings = ruleWarningMessages(input, config);
const warnings = ruleWarningMessages(input.trim(), config);

return warnings || true;
},
Expand Down

0 comments on commit 67892ae

Please sign in to comment.