Skip to content

Commit d2e11d0

Browse files
authored
Update zip_codes.xml for GG & JE Postcode
* Combine updated Guernsey postcodes into 1 pattern based on feedback from "Den4ik" and limit to GY1 to GY10. * Fix bug with Jersey postcodes not working if customers forget to add a space. * Tighten Jersey postcodes to JE1-JE5 e.g. https://en.wikipedia.org/wiki/JE_postcode_area
1 parent 54630ee commit d2e11d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@
258258
</zip>
259259
<zip countryCode="GG">
260260
<codes>
261-
<code id="pattern_1" active="true" example="GY1 2AB">^GY[0-9]{1}\s[0-9]{1}[a-zA-Z]{2}$</code>
262-
<code id="pattern_2" active="true" example="GY10 1PB">^GY[0-9]{2}\s?[0-9]{1}[a-zA-Z]{2}$</code>
261+
<code id="pattern_1" active="true" example="GY10 2AB">^GY([0-9]|10)\s?[0-9]{1}[a-zA-Z]{2}$</code>
263262
</codes>
264263
</zip>
265264
<zip countryCode="GH">
@@ -379,7 +378,7 @@
379378
</zip>
380379
<zip countryCode="JE">
381380
<codes>
382-
<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">^JE[0-5]{1}\s?[0-9]{1}[a-zA-Z]{2}$</code>
383382
</codes>
384383
</zip>
385384
<zip countryCode="JO">

0 commit comments

Comments
 (0)