aboutsummaryrefslogtreecommitdiff
path: root/src/definitions
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2023-08-10 18:37:17 +0100
committerGitHub <[email protected]>2023-08-10 19:37:17 +0200
commit0ca1e442d6a882677fc73012fc481d48ca1905a5 (patch)
tree84b2ca509e5a126cd0e7c033fc1fc5f14a8f8f08 /src/definitions
parent7f0daf3ddaa8956dc393964362eb696e23dc57d6 (diff)
downloadfaker-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.ts4
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.