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

Add hasWhitespace and hasWhitespaceOnly #272

Conversation

jasonlam604
Copy link
Contributor

Refer to issue #247

Although, I suggested IsBlank that that can get confusing with IsNull and in other languages isEmpty, it is debatably not completely clear.

In my opinion,

HasWhitespace is more explicit, does it have any whitespace
and
HasWhitespaceOnly is more explicit as well, does it only have whitespace

Included unit tests as well.

@asaskevich asaskevich merged commit 4cba60e into asaskevich:master Jul 20, 2018
@asaskevich
Copy link
Owner

Thank you!

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.

None yet

2 participants