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

Update 'prepare' regexp to allow hyphen #2019

Merged
merged 1 commit into from
May 29, 2020

Conversation

jbergenson
Copy link
Contributor

#1954

Description:

Fix edge case where domain has a hyphen in it (example: foo-bar.com) by updating regexp in Faker::Char.prepare and update test assertion to account for change.

The only other place where I see this change having an impact is in Faker::Internet.username, however there are currently no names in the locale file that contain a hyphen and so it seems like it would be overkill to account for this in the prepare method.

@jbergenson jbergenson force-pushed the fix-email-domain-dash-issue branch from 72a9fe3 to 2fe184f Compare May 26, 2020 14:51
Copy link
Contributor

@Zeragamba Zeragamba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@koic koic merged commit f9e1161 into faker-ruby:master May 29, 2020
@koic
Copy link
Member

koic commented May 29, 2020

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.

3 participants