-
Notifications
You must be signed in to change notification settings - Fork 201
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
Breaks if body is left empty #208
Comments
Is there a workaround for this? @leonardoanalista sorry to tag you directly, would love advice! |
A simple workaround is adding |
Or you can type spaces in body |
Thank you all for contributing 👏 👏 👏 |
Problem
It breaks if leaving the body empty:
Example input
What is causing this?
This is because the default value for body is
false
, opposed to other left out values, which are empty strings instead. Have a close look at the Example input above and you will notice thefalse
under body.This line in
build.commit.js
will then break this, becauseword-wrap
requires the first argument to be a string (and not a boolean):let body = wrap(answers.body, wrapOptions) || '';
System
Linux Mint 20.3 Cinnamon
Node v.16.16.0
npm v.8.11.0
The text was updated successfully, but these errors were encountered: