Skip to content

Fix: trim trailing spaces (closes #39) #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 1, 2017
Merged

Conversation

aichbauer
Copy link
Collaborator

No description provided.

@aichbauer aichbauer requested a review from JPeer264 September 6, 2017 15:38
@@ -10,25 +10,25 @@ const rules = {
},
}),
maxChar: (input, config) => ({
message: () => `The commit message is not allowed to be longer as ${config.rules['max-char']} character, but is ${input.length} character long. Consider writing a body.`,
message: () => `The commit message is not allowed to be longer as ${config.rules['max-char']} character, but is ${input.trim().length} character long. Consider writing a body.`,
Copy link
Owner

Choose a reason for hiding this comment

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

Would be better if we trim them here: https://github.com/JPeer264/node-semantic-git-commit-cli/blob/master/lib/questions.js#L62

Then it would apply to every rule automatically. So we do not have to touch this file.

@coveralls
Copy link

coveralls commented Sep 8, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 22b41f6 on fix/trimWhitespace into 9116c5d on master.

Repository owner deleted a comment from coveralls Sep 8, 2017
@coveralls
Copy link

coveralls commented Sep 12, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 0e19b69 on fix/trimWhitespace into d1a9958 on master.

@coveralls
Copy link

coveralls commented Sep 12, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 0e19b69 on fix/trimWhitespace into d1a9958 on master.

@aichbauer aichbauer requested a review from JPeer264 September 12, 2017 15:37
@coveralls
Copy link

coveralls commented Oct 1, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 342c21a on fix/trimWhitespace into c68d01b on master.

@JPeer264 JPeer264 merged commit e5c2e3c into master Oct 1, 2017
@JPeer264 JPeer264 deleted the fix/trimWhitespace branch October 1, 2017 16:47
JPeer264 pushed a commit that referenced this pull request Oct 1, 2017
* Fix: trim trailing spaces

* Refactor: trim input inside of questions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants