Skip to content

Commit

Permalink
Merge pull request #568 from vtex/loc/FixMalta4x
Browse files Browse the repository at this point in the history
Fix Malta postal code validation
  • Loading branch information
jeffersontuc authored May 10, 2024
2 parents 01da5af + f8eb160 commit cb201d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Malta postal code validation.

## [4.23.2] - 2024-05-06

### Fixed
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}\s?\d{4}$',
regex: '^[a-zA-Z]{2,3}\\ ?\\d{4}$',
postalCodeAPI: false,
size: 'small',
autoComplete: 'nope',
Expand Down

0 comments on commit cb201d4

Please sign in to comment.