Skip to content

Commit

Permalink
Fix Malta postal code validation
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeLimaDev committed May 9, 2024
1 parent f50dbbf commit 23e8f44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
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.

## [3.35.4] - 2024-05-06

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"defaultLocale": "en",
"mustUpdateAt": "2019-01-08",
"categories": [],
"registries": ["smartcheckout"],
"registries": [
"smartcheckout"
],
"settingsSchema": {},
"dependencies": {
"vtex.checkout": "0.x",
Expand Down
2 changes: 1 addition & 1 deletion react/country/MLT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 23e8f44

Please sign in to comment.