Skip to content

[Issue] Update zip_codes.xml #29984

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #29972: Update zip_codes.xml


Changed regex for zipcodes from Brazil. All zipcode must have 8 positions, with or without dash

Preconditions: (*)

Magento 2.4-develop
Changed the regex to force 8 digits for zipcode in Brazil

Related Pull Requests

n/a

Fixed Issues (if relevant)

Didn't found issue but a lot of people asking for help in forums

Steps to reproduce: (*)

Format of zipcodes in Brazil: 99999-999 or 99999999

  1. Put any number less than 8 digits (ex: 01001) - ERROR
  2. Put a number with 8 digits, without dash (ex: 01001-001) - OK
  3. Put a number with 5 digits, a dash and more 3 digits (ex: 01001-001) - OK

Actual Result: ✖️ It possible to use 5 digits ZIP code

Screenshot from 2020-09-21 16-25-31

Expected Result: ✔️ all zip codes for Brazil must have 8 digits

2020-09-21_16-33

Questions or comments

First contribution to Magento, please let me know if I need to provide more info

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • [N/A] All new or changed code is covered with unit/integration tests (if applicable)
  • [N/A] All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: DirectoryFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions