Skip to content

Commit

Permalink
Simplify the postal code pattern for Peru (PE).
Browse files Browse the repository at this point in the history
Postal codes starting with "LIMA" or "CALLAO" are no longer in use.
  • Loading branch information
bojanz committed Feb 25, 2024
1 parent 7200235 commit 9c81c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ var formats = map[string]Format{
Layout: "%1\n%2\n%3\n%L %P\n%R",
Required: []Field{FieldLine1, FieldLocality},
LocalityType: LocalityTypeDistrict,
PostalCodePattern: `(?:LIMA \d{1,2}|CALLAO 0?\d)|[0-2]\d{4}`,
PostalCodePattern: `[0-2]\d{4}`,
Regions: NewRegionMap(
"AMA", "Amazonas", "ANC", "Ancash", "APU", "Apurimac",
"ARE", "Arequipa", "AYA", "Ayacucho", "CAJ", "Cajamarca",
Expand Down

0 comments on commit 9c81c50

Please sign in to comment.