Skip to content

Commit 2207040

Browse files
committed
Make NL zipcode pattern less strict
The NL zipcode is too strict. Magento 2 advises `1234 AB`, while it's very common to enter it like `1234AB`. That's why I made the space character optional.
1 parent a5fa3af commit 2207040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/code/Magento/Directory/etc/zip_codes.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
</zip>
319319
<zip countryCode="NL">
320320
<codes>
321-
<code id="pattern_1" active="true" example="1234 AB">^[0-9]{4}\s[a-zA-Z]{2}$</code>
321+
<code id="pattern_1" active="true" example="1234 AB">^[0-9]{4}\s?[a-zA-Z]{2}$</code>
322322
</codes>
323323
</zip>
324324
<zip countryCode="NO">

0 commit comments

Comments
 (0)