From fd41322068286910ffb263626a5d6abb3741128c Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Thu, 2 May 2024 10:36:43 -0300 Subject: [PATCH 1/2] Fix MLT postal code validation --- CHANGELOG.md | 4 ++++ react/country/MLT.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff4e958b..dc99d334 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.3] - 2024-04-26 ## [3.35.2] - 2024-04-25 diff --git a/react/country/MLT.ts b/react/country/MLT.ts index 63867ab6..ea42fc83 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}\d{4}$', + regex: '^[a-zA-Z]{2,3}\s?\d{4}$', postalCodeAPI: false, size: 'small', autoComplete: 'nope', From c993e240600b6fa7ee1f9cb552de03c21895ef85 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 6 May 2024 15:34:30 -0300 Subject: [PATCH 2/2] Release v3.35.4 --- CHANGELOG.md | 5 ++++- manifest.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc99d334..caa328b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ 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. @@ -1548,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 diff --git a/manifest.json b/manifest.json index 3ede2be6..d693fca8 100644 --- a/manifest.json +++ b/manifest.json @@ -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",