diff --git a/CHANGELOG.md b/CHANGELOG.md index 9312bf6d..4dc3fca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/react/country/MLT.js b/react/country/MLT.js index 007590df..4545828f 100644 --- a/react/country/MLT.js +++ b/react/country/MLT.js @@ -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',