Skip to content
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

trimmed user input so just pressing enter is treated as a confirmation #1

Merged
merged 1 commit into from
Sep 23, 2015
Merged

trimmed user input so just pressing enter is treated as a confirmation #1

merged 1 commit into from
Sep 23, 2015

Conversation

sebastianheuer
Copy link
Contributor

The console output suggests that just hitting enter will confirm the message. However when doing so the response string is not empty but contains a line break, so the comparison in ConsoleInput::confirm() will return false.

I trimmed the user input so the comparison returns true, as originally intended.

theseer added a commit that referenced this pull request Sep 23, 2015
trimmed user input so just pressing enter is treated as a confirmation
@theseer theseer merged commit 7391f4e into theseer:master Sep 23, 2015
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.

2 participants