diff --git a/CHANGELOG.md b/CHANGELOG.md index caa328b3..0f23e704 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. + ## [3.35.4] - 2024-05-06 ### Fixed diff --git a/manifest.json b/manifest.json index d693fca8..34ed1962 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,9 @@ "defaultLocale": "en", "mustUpdateAt": "2019-01-08", "categories": [], - "registries": ["smartcheckout"], + "registries": [ + "smartcheckout" + ], "settingsSchema": {}, "dependencies": { "vtex.checkout": "0.x", diff --git a/react/country/MLT.ts b/react/country/MLT.ts index ea42fc83..6168e204 100644 --- a/react/country/MLT.ts +++ b/react/country/MLT.ts @@ -19,7 +19,7 @@ const rules: PostalCodeRules = { 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',