Skip to content

Commit 2cc1dd0

Browse files
author
Oleksii Korshenko
authored
MAGETWO-84372: 9515: South Korea Zip Code Validation incorrect magento#903
2 parents 9c3d257 + 830517b commit 2cc1dd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
</zip>
227227
<zip countryCode="KR">
228228
<codes>
229-
<code id="pattern_1" active="true" example="123-456">^[0-9]{3}-[0-9]{3}$</code>
229+
<code id="pattern_1" active="true" example="12345">^[0-9]{5}$</code>
230230
</codes>
231231
</zip>
232232
<zip countryCode="KG">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getPostcodesDataProvider()
9595
['countryId' => 'JE', 'postcode' => 'TY8 9PL'],
9696
['countryId' => 'KZ', 'postcode' => '123456'],
9797
['countryId' => 'KE', 'postcode' => '12345'],
98-
['countryId' => 'KR', 'postcode' => '123-456'],
98+
['countryId' => 'KR', 'postcode' => '12345'],
9999
['countryId' => 'KG', 'postcode' => '123456'],
100100
['countryId' => 'LV', 'postcode' => '1234'],
101101
['countryId' => 'LI', 'postcode' => '1234'],

0 commit comments

Comments
 (0)