-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Malta Postal Code and Phone Number #975
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for PR. This LGTM.
Please add tests and update the README and we should be good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! 🎉 Few more changes and we should be good with this one.
@@ -3775,6 +3775,18 @@ describe('Validators', () => { | |||
'123456789', | |||
'+254800723845', | |||
], | |||
},{ | |||
locale: 'en-mt', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be en-MT
(check case).
@@ -38,6 +38,7 @@ const patterns = { | |||
LU: fourDigit, | |||
LV: /^LV\-\d{4}$/, | |||
MX: fiveDigit, | |||
MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add tests for isPostalCode
- clean-up merge conflicts - add tests for postal code, ref: https://en.wikipedia.org/wiki/Postal_codes_in_Malta
@fgnm -- merged. |
I've add Malta Postal Code (XXX0000 or XXX 0000) and Phone Number (+356XXYYYYYY). Can you please merge this as soon as possibile? It's very critical for my, many many thanks :)