We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From time to time the vin generated id 18 characters long. according to the standard a vin number should be 17 characters long.
Looking at the code:
faker/src/vehicle.ts
Line 87 in 3242dfc
This last segment intends to return a 5 digit block but it has an edge case where it returns 100000, making the whole thing 18 chars long.
100000
I will try submitting a PR later.
It's random, if you generate a lot of vin numbers you will end up getting it.
No response
The text was updated successfully, but these errors were encountered:
@demipel8 If you submit a PR, please do provide a test which will create a large number of VINs to make sure it doesn't happen again.
Sorry, something went wrong.
demipel8
Successfully merging a pull request may close this issue.
Describe the bug
From time to time the vin generated id 18 characters long. according to the standard a vin number should be 17 characters long.
Looking at the code:
faker/src/vehicle.ts
Line 87 in 3242dfc
This last segment intends to return a 5 digit block but it has an edge case where it returns
100000
, making the whole thing 18 chars long.I will try submitting a PR later.
Reproduction
It's random, if you generate a lot of vin numbers you will end up getting it.
Additional Info
No response
The text was updated successfully, but these errors were encountered: