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

Fixes trailing question mark reported in #378. #381

Merged
merged 2 commits into from
Feb 12, 2015
Merged

Fixes trailing question mark reported in #378. #381

merged 2 commits into from
Feb 12, 2015

Conversation

chris-redekop
Copy link
Contributor

A few new tests demonstrate the problem and the fix.

The problem is the upfront single-character check, which lets a single special character through.

The fix is to let the Regex work on every string, and check for empty Enumerations with String.Join and the final ternary operator.

@MehdiK
Copy link
Member

MehdiK commented Feb 11, 2015

Awesome. Thanks for the correction and the unit tests. Could you please add this to the release-notes file?

@chris-redekop
Copy link
Contributor Author

I am glad to help, and thanks for the library! I added the PR to the release notes.

MehdiK added a commit that referenced this pull request Feb 12, 2015
Fixes trailing question mark reported in #378.
@MehdiK MehdiK merged commit 3d28faf into Humanizr:master Feb 12, 2015
@MehdiK
Copy link
Member

MehdiK commented Feb 12, 2015

Awesome. Thanks for the addition.

@MehdiK
Copy link
Member

MehdiK commented Mar 4, 2015

This is now released to NuGet as v1.34.0. Thanks.

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