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 975a652 commit 1ed5f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AddressFormat/AddressFormatRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ protected function getDefinitions(): array
'PE' => [
'format' => "%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %postalCode\n%administrativeArea",
'locality_type' => 'district',
'postal_code_pattern' => '(?:LIMA \d{1,2}|CALLAO 0?\d)|[0-2]\d{4}',
'postal_code_pattern' => '[0-2]\d{4}',
'subdivision_depth' => 1,
],
'PF' => [
Expand Down

0 comments on commit 1ed5f7c

Please sign in to comment.