Skip to content

Commit e5c2e3c

Browse files
aichbauerJPeer264
authored andcommitted
Fix: trim trailing spaces (closes #39) (#41)
* Fix: trim trailing spaces * Refactor: trim input inside of questions
1 parent c68d01b commit e5c2e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/questions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const questions = (config) => {
6666
name: 'description',
6767
message: 'Enter your commit message:',
6868
validate: (input) => {
69-
const warnings = ruleWarningMessages(input, config);
69+
const warnings = ruleWarningMessages(input.trim(), config);
7070

7171
return warnings || true;
7272
},

0 commit comments

Comments
 (0)