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 a use case with names like 'ben jones' #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikkelking
Copy link

The existing regexes for middle names like 'ben', 'del', 'il' etc also fire at the beginning of the line,
so ben cousins => ben Cousins
and van johns => van Johns
This regex change fixes that

@compwright
Copy link

@mikkelking if you're parsing a full name like Ben Cousins, don't pass { individualFields: true } and it will work fine as-is.

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