Skip to content

Fixes a use case with names like 'ben jones'#3

Open
mikkelking wants to merge 1 commit intoemgee3:masterfrom
mikkelking:master
Open

Fixes a use case with names like 'ben jones'#3
mikkelking wants to merge 1 commit intoemgee3:masterfrom
mikkelking:master

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