diff options
| author | Eric Cheng <[email protected]> | 2022-11-14 17:56:49 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-14 22:56:49 +0000 |
| commit | 801e9e0a6afa2bd472652eb7aaee5581ef458342 (patch) | |
| tree | e33cf4d8682583164606e62d49876806664eb9d2 /src/modules/vehicle | |
| parent | 66ccca3e11721647c4c13179eb1e23f13d43ef03 (diff) | |
| download | faker-801e9e0a6afa2bd472652eb7aaee5581ef458342.tar.xz faker-801e9e0a6afa2bd472652eb7aaee5581ef458342.zip | |
refactor(string): rename params (#1551)
Diffstat (limited to 'src/modules/vehicle')
| -rw-r--r-- | src/modules/vehicle/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/vehicle/index.ts b/src/modules/vehicle/index.ts index 3ef8f748..e6bdaeb3 100644 --- a/src/modules/vehicle/index.ts +++ b/src/modules/vehicle/index.ts @@ -87,19 +87,19 @@ export class VehicleModule { * @since 5.0.0 */ vin(): string { - const bannedChars = ['o', 'i', 'q', 'O', 'I', 'Q']; + const exclude = ['o', 'i', 'q', 'O', 'I', 'Q']; return `${this.faker.string.alphanumeric({ length: 10, casing: 'upper', - bannedChars, + exclude, })}${this.faker.string.alpha({ length: 1, casing: 'upper', - bannedChars, + exclude, })}${this.faker.string.alphanumeric({ length: 1, casing: 'upper', - bannedChars, + exclude, })}${this.faker.datatype.number({ min: 10000, max: 99999 })}` // return five digit # .toUpperCase(); } |
