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 regex used for Faker::Vehicle#vin #2475

Merged
merged 6 commits into from
Jun 16, 2022
Merged

Conversation

erayalkis
Copy link
Contributor

@erayalkis erayalkis commented Apr 2, 2022

Issue

Faker::Vehicle.vin generates invalid vin

Description:

Closes #2473.
This pull request updates the Regex used by the Faker::Vehicle#vin method.
The old Regex would include the I, O and Q characters, and would generate an invalid vin string.

No additional tests were written as it was a simple one line update and didn't introduce any significant changes.

Old regex generated I, O and Q characters inside string, which creates an invalid vin.
@sudeeptarlekar
Copy link
Contributor

sudeeptarlekar commented Apr 4, 2022

Can you please link this PR to issue?
Ref. https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

Also please add test cases for new changes.

Thanks in advance

@erayalkis
Copy link
Contributor Author

All done, thank you for the quick review!

Copy link
Contributor

@sudeeptarlekar sudeeptarlekar left a comment

Choose a reason for hiding this comment

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

Looks good to 🚢

@sudeeptarlekar
Copy link
Contributor

@koic, @vbrazo, @psibi pls review.

@thdaraujo thdaraujo merged commit e5268b3 into faker-ruby:master Jun 16, 2022
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.

Faker::Vehicle.vin generates invalid vins
3 participants