Skip to content

Commit

Permalink
Update zip_codes.xml
Browse files Browse the repository at this point in the history
Changed regex for zipcodes from Brazil. All zipcode must have 8 positions, with or without dash
  • Loading branch information
marcostrama authored Sep 10, 2020
1 parent 1dc62a7 commit 1472740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Directory/etc/zip_codes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</zip>
<zip countryCode="BR">
<codes>
<code id="pattern_1" active="true" example="12345">^[0-9]{5}$</code>
<code id="pattern_1" active="true" example="12345678">^[0-9]{8}$</code>
<code id="pattern_2" active="true" example="12345-678">^[0-9]{5}\-[0-9]{3}$</code>
</codes>
</zip>
Expand Down

0 comments on commit 1472740

Please sign in to comment.