bchavez / Bogus

:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Other
8.66k stars 495 forks source link

Add option to generate strict VIN (exclusive characters I, O and Q) #421

Closed skwasjer closed 8 months ago

skwasjer commented 2 years ago

Adds an optional boolean to opt-in to generating a VIN using a more strict characterset.

In 1981, the National Highway Traffic Safety Administration of the United States standardized the format.[1] It required all on-road vehicles sold to contain a 17-character VIN, which does not include the letters O (o), I (i), and Q (q) (to avoid confusion with numerals 0, 1, and 9).

Fixes #449

skwasjer commented 10 months ago

Any ETA on this? :)

ps: I could also remove the bool argument and just make this the default behavior if so desired.

There's also a bug I found whilst working on this, see #431

bchavez commented 8 months ago

Hello. Thank you for the pull request.

Your changes are published in Bogus v35.4.0:

Thanks again for the help. -Brian