diff options
| author | Matt Mayer <[email protected]> | 2023-08-10 18:37:17 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-10 19:37:17 +0200 |
| commit | 0ca1e442d6a882677fc73012fc481d48ca1905a5 (patch) | |
| tree | 84b2ca509e5a126cd0e7c033fc1fc5f14a8f8f08 /src/definitions | |
| parent | 7f0daf3ddaa8956dc393964362eb696e23dc57d6 (diff) | |
| download | faker-0ca1e442d6a882677fc73012fc481d48ca1905a5.tar.xz faker-0ca1e442d6a882677fc73012fc481d48ca1905a5.zip | |
fix(location): Pad en_US ZIP codes left to 5 characters if needed (#2278)
* fix(location): Pad en_US ZIP codes left to 5 characters if needed
* fix NJ and RI
* fix PR
* updated postcode_by_state to use string patterns
---------
Co-authored-by: DivisionByZero <[email protected]>
Diffstat (limited to 'src/definitions')
| -rw-r--r-- | src/definitions/location.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/definitions/location.ts b/src/definitions/location.ts index b8e7ebab..b32ae1c1 100644 --- a/src/definitions/location.ts +++ b/src/definitions/location.ts @@ -7,7 +7,9 @@ export type LocationDefinition = LocaleEntry<{ /** * Postcodes patterns by state */ - postcode_by_state: { [state: string]: { min: number; max: number } }; + postcode_by_state: { + [state: string]: string; + }; /** * Postcodes patterns. |
