Skip to content

Commit

Permalink
Remove the administrative area field from CC, CX, HM, NF.
Browse files Browse the repository at this point in the history
These are all islands which originally inherited the AU address format,
and with it the administrative area field, even though they don't
have administrative areas defined by ISO.
  • Loading branch information
bojanz committed May 17, 2023
1 parent 50f84c1 commit 4cbd92d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/AddressFormat/AddressFormatRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ protected function getDefinitions(): array
'subdivision_depth' => 1,
],
'CC' => [
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %administrativeArea %postalCode",
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %postalCode",
'uppercase_fields' => [
'locality', 'administrativeArea',
'locality',
],
'postal_code_pattern' => '6799',
],
Expand Down Expand Up @@ -349,9 +349,9 @@ protected function getDefinitions(): array
'subdivision_depth' => 1,
],
'CX' => [
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %administrativeArea %postalCode",
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %postalCode",
'uppercase_fields' => [
'locality', 'administrativeArea',
'locality',
],
'postal_code_pattern' => '6798',
],
Expand Down Expand Up @@ -589,9 +589,9 @@ protected function getDefinitions(): array
'subdivision_depth' => 2,
],
'HM' => [
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %administrativeArea %postalCode",
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %postalCode",
'uppercase_fields' => [
'locality', 'administrativeArea',
'locality',
],
'postal_code_pattern' => '\d{4}',
],
Expand Down Expand Up @@ -1026,9 +1026,9 @@ protected function getDefinitions(): array
'postal_code_pattern' => '\d{4}',
],
'NF' => [
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %administrativeArea %postalCode",
'format' => "%organization\n%givenName %familyName\n%addressLine1\n%addressLine2\n%addressLine3\n%locality %postalCode",
'uppercase_fields' => [
'locality', 'administrativeArea',
'locality',
],
'postal_code_pattern' => '2899',
],
Expand Down

0 comments on commit 4cbd92d

Please sign in to comment.