Skip to content

Commit

Permalink
Merge pull request #563 from vtex/fix/MLT
Browse files Browse the repository at this point in the history
Fix MLT postal code validation
  • Loading branch information
jeffersontuc authored May 6, 2024
2 parents cd51576 + c993e24 commit 17783de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [3.35.4] - 2024-05-06

### Fixed

- Malta postal code validation.

## [3.35.3] - 2024-04-26

## [3.35.2] - 2024-04-25
Expand Down Expand Up @@ -1544,9 +1550,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- **`AddressSubmitter`** component and tests


[Unreleased]: https://github.com/vtex/address-form/compare/v3.35.3...HEAD
[Unreleased]: https://github.com/vtex/address-form/compare/v3.35.4...HEAD
[3.34.6]: https://github.com/vtex/address-form/compare/v3.34.5...v3.34.6
[3.34.5]: https://github.com/vtex/address-form/compare/v3.34.4...v3.34.5
[3.35.4]: https://github.com/vtex/address-form/compare/v3.35.3...v3.35.4
[3.35.3]: https://github.com/vtex/address-form/compare/v3.35.2...v3.35.3
[3.35.2]: https://github.com/vtex/address-form/compare/v3.35.1...v3.35.2
[3.35.1]: https://github.com/address-form//compare/v3.35.0...v3.35.1
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "address-form",
"vendor": "vtex",
"version": "3.35.3",
"version": "3.35.4",
"title": "address-form React component",
"description": "address-form React component",
"defaultLocale": "en",
Expand Down
2 changes: 1 addition & 1 deletion react/country/MLT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const rules: PostalCodeRules = {
fixedLabel: 'Post code',
required: true,
mask: 'AAA 999',
regex: '^[a-zA-Z]{2,3}\d{4}$',
regex: '^[a-zA-Z]{2,3}\s?\d{4}$',
postalCodeAPI: false,
size: 'small',
autoComplete: 'nope',
Expand Down

0 comments on commit 17783de

Please sign in to comment.