Skip to content

Commit 0adc621

Browse files
committed
Merge branch 'MC-40387' of https://github.com/magento-l3/magento2ce into TANGO_PR-02-03-2021_24
2 parents 0b3d2ee + 7ce6016 commit 0adc621

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
<codes>
104104
<code id="pattern_1" active="true" example="A1B 2C3">^[a-zA-z]{1}[0-9]{1}[a-zA-z]{1}\s[0-9]{1}[a-zA-z]{1}[0-9]{1}$</code>
105105
<code id="pattern_2" active="true" example="A1B2C3">^[a-zA-z]{1}[0-9]{1}[a-zA-z]{1}[0-9]{1}[a-zA-z]{1}[0-9]{1}$</code>
106+
<code id="pattern_3" active="true" example="A1B">^[a-zA-z]{1}[0-9]{1}[a-zA-z]{1}$</code>
106107
</codes>
107108
</zip>
108109
<zip countryCode="CC">

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ public function getCanadaValidPostCodes()
8080
return [
8181
['countryId' => 'CA', 'postcode' => 'A1B2C3'],
8282
['countryId' => 'CA', 'postcode' => 'A1B 2C3'],
83+
['countryId' => 'CA', 'postcode' => 'A1B'],
8384
['countryId' => 'CA', 'postcode' => 'Z9Y 8X7'],
8485
['countryId' => 'CA', 'postcode' => 'Z9Y8X7'],
86+
['countryId' => 'CA', 'postcode' => 'Z9Y'],
8587
];
8688
}
8789

0 commit comments

Comments
 (0)