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

Faker::Internet.slug excludes "." by default #1456

Merged
merged 1 commit into from Oct 31, 2018
Merged

Faker::Internet.slug excludes "." by default #1456

merged 1 commit into from Oct 31, 2018

Conversation

ivanoblomov
Copy link
Contributor

@ivanoblomov ivanoblomov commented Oct 31, 2018

Fixes #838.

To avoid errors caused by misinterpreting dotted strings as filename extensions, omit . as a delimiter for randomly generated slugs.

Note I omitted test coverage here since it would require looping around the randomization.

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

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

👍

@vbrazo vbrazo merged commit 87765f8 into faker-ruby:master Oct 31, 2018
@vbrazo
Copy link
Member

vbrazo commented Oct 31, 2018

I just noticed that I forgot to ask you to write a test for this change. I'll do that in a separate commit 👍

@ivanoblomov ivanoblomov deleted the dotless-slugs branch October 31, 2018 19:12
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants