-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Username splits names by space and doesn't regex match them #2950
Username splits names by space and doesn't regex match them #2950
Conversation
hi @keshavbiswa thanks! I think we want to drop the character and make it part of the last name. I added a comment here #2943 (comment) |
So ultimately, I am stripping username with apostrophe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point all I see are the two outstanding issues with the regular expressions, everything else looks good. Also, nice job identifying the Faker::String
issue!
Could I get a re-review on this 🙂 ? @alextaujenis @stefannibrasil |
@stefannibrasil Can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you @keshavbiswa looking much better now without splitting the apostrophe from the last name 🎉
Motivation / Background
This Pull Request has been created because Username doesn't behave well with Apostrophe names such as "Alexis O'Connell".
Since we're matching them by word, it breaks them into 3 parts "alexis", "o", "connell". (Not sure if this is correct behaviour as we don't have English names 😅 )
This causes problem testing emails as we get the following list of permutations:
This PR breaks names by Spaces and doesn't ignore '.
Additional information
This PR also fixes: #2943
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
If you're proposing a new generator or locale: