Skip to content

Commit 5efef94

Browse files
authored
ENGCOM-9122: Update zip_codes.xml patterns for Guernsey & Jersey #33128
2 parents 7f316f8 + a6350a6 commit 5efef94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Directory/etc/zip_codes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
</zip>
259259
<zip countryCode="GG">
260260
<codes>
261-
<code id="pattern_1" active="true" example="AB1 2CD">^[a-zA-Z]{2}[0-9]{1}\s[0-9]{1}[a-zA-Z]{2}$</code>
261+
<code id="pattern_1" active="true" example="GY10 2AB">^[gG][yY]([1-9]|10)\s?[0-9]{1}[a-zA-Z]{2}$</code>
262262
</codes>
263263
</zip>
264264
<zip countryCode="GH">
@@ -378,7 +378,7 @@
378378
</zip>
379379
<zip countryCode="JE">
380380
<codes>
381-
<code id="pattern_1" active="true" example="AB1 2CD">^[a-zA-Z]{2}[0-9]{1}\s[0-9]{1}[a-zA-Z]{2}$</code>
381+
<code id="pattern_1" active="true" example="JE2 4PJ">^[jJ][eE][1-5]{1}\s?[0-9]{1}[a-zA-Z]{2}$</code>
382382
</codes>
383383
</zip>
384384
<zip countryCode="JO">

dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function getPostcodesDataProvider()
152152
['countryId' => 'GB', 'postcode' => 'Q1 2PL'],
153153
['countryId' => 'GE', 'postcode' => '1234'],
154154
['countryId' => 'GF', 'postcode' => '12345'],
155-
['countryId' => 'GG', 'postcode' => 'PL5 7TH'],
155+
['countryId' => 'GG', 'postcode' => 'GY10 2AB'],
156156
['countryId' => 'GL', 'postcode' => '1234'],
157157
['countryId' => 'GH', 'postcode' => 'GA18400'],
158158
['countryId' => 'GN', 'postcode' => '123'],
@@ -174,7 +174,7 @@ public function getPostcodesDataProvider()
174174
['countryId' => 'IN', 'postcode' => '123456'],
175175
['countryId' => 'IS', 'postcode' => '123'],
176176
['countryId' => 'IT', 'postcode' => '12345'],
177-
['countryId' => 'JE', 'postcode' => 'TY8 9PL'],
177+
['countryId' => 'JE', 'postcode' => 'JE2 4PJ'],
178178
['countryId' => 'JO', 'postcode' => '12345'],
179179
['countryId' => 'JP', 'postcode' => '123-4567'],
180180
['countryId' => 'JP', 'postcode' => '1234567'],

0 commit comments

Comments
 (0)