Skip to content

Commit 2d75e82

Browse files
ENGCOM-1052: [ForwardPort 2.3] [#14072] Add Zip Pattern for Japan JP #14300
- Merge Pull Request #14300 from osrecio/magento2:PR_14072_2.3 - Merged commits: 1. 79474ca 2. 1e735aa
2 parents cec4bf4 + 1e735aa commit 2d75e82

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
@@ -207,7 +207,7 @@
207207
<zip countryCode="JP">
208208
<codes>
209209
<code id="pattern_1" active="true" example="123-4567">^[0-9]{3}-[0-9]{4}$</code>
210-
<code id="pattern_2" active="true" example="123">^[0-9]{3}$</code>
210+
<code id="pattern_2" active="true" example="1234567">^[0-9]{7}$</code>
211211
</codes>
212212
</zip>
213213
<zip countryCode="JE">

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
@@ -133,7 +133,7 @@ public function getPostcodesDataProvider()
133133
['countryId' => 'IL', 'postcode' => '12345'],
134134
['countryId' => 'IT', 'postcode' => '12345'],
135135
['countryId' => 'JP', 'postcode' => '123-4567'],
136-
['countryId' => 'JP', 'postcode' => '123'],
136+
['countryId' => 'JP', 'postcode' => '1234567'],
137137
['countryId' => 'JE', 'postcode' => 'TY8 9PL'],
138138
['countryId' => 'KZ', 'postcode' => '123456'],
139139
['countryId' => 'KE', 'postcode' => '12345'],

0 commit comments

Comments
 (0)