Skip to content

Commit

Permalink
Merge pull request #564 from vtex/fix/MLT-4x
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 30e4501 + 4f92db4 commit 3228b2e
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]

## [4.23.1] - 2024-05-06

### Fixed

- Malta postal code validation.

## [4.23.0] - 2024-04-26

### Added
Expand Down Expand Up @@ -900,5 +906,6 @@ 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/v4.23.0...HEAD
[Unreleased]: https://github.com/vtex/address-form/compare/v4.23.1...HEAD
[4.23.1]: https://github.com/vtex/address-form/compare/v4.23.0...v4.23.1
[4.23.0]: https://github.com/vtex/address-form/compare/v4.22.8...v4.23.0
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": "4.23.0",
"version": "4.23.1",
"title": "address-form React component",
"description": "address-form React component",
"defaultLocale": "en",
Expand Down
2 changes: 1 addition & 1 deletion react/country/MLT.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
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 3228b2e

Please sign in to comment.