-
-
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
fix(isMobilePhone): update de-CH locale (#1549) #1554
fix(isMobilePhone): update de-CH locale (#1549) #1554
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1554 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 99 99
Lines 1776 1778 +2
=========================================
+ Hits 1776 1778 +2
Continue to review full report at Codecov.
|
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.
Great work! Thank you for your PR 🎉
I suggest using aliases for countries with more than one locale for the same regex instead of adding it multiple times. You can check what has been done for Canada and Belgium for example
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.
Thank you for making the necessary changes! LGTM 🎉
Let's wait for @ezkemboi or @profnandaa Review
* chore: prevent git from ignoring src/index.js file * chore: remove unused exclusion from nyc config * chore: replace travis-ci with github actions * chore: fix issue with github workflow config * chore: fix condition for coverage generation and sending * chore: treat node version as int * docs: replace travis with github actions badge * chore: add npm publish github action * chore: remove auto-generated files * chore: improve github actions styles * chore: use correct repo url to prevent unecessary redirect * chore: lint package.json file * chore: add new line at end of file * feat(isMobilePhone): update de-CH, add fr-CH, it-CH locales (#1554) * fix(isMobilePhone): update de-CH locale (#1549) feat(isMobilePhone): add fr-CH locale (#1549) feat(isMobilePhone): add it-CH locale (#1549) * fix(isMobilePhone): update de-CH, fr-CH and it-CH locale in validator.min.js(#1549) * fix(isMobilePhone): update fr-CH and it-CH locale aliases (#1549) Co-authored-by: Ashutosh Kumar <[email protected]> * feat(isLicensePlate): new validator 🎉 (#1495) * Added isLicensePlate check with german locale * de-LI (Liechtenstein) validator * Added albanian number plates * reversed changes in index.js * reversed changes in index.js * Refactored de-DE into one big regex, expanded tests fot de-DE * added pt-PT locale * Fixed coverage problem * feat(isLicensePlate): clean build * coverage is now 100% * Update README.md * Update README.md * fix(isTaxID): fix el-GR locale when checksum is 10 (#1529) Add correct tax identifier to demonstrate issue and fix. Thanks to: Panos Papadopoulos * feat(isMobileNumber): add support new telco numbers for VN locale (#1575) * Support new VN mobile phone 087 (https://didong.itelecom.vn/) * Add test for new telco number Co-authored-by: Kyle Dinh <[email protected]> * chore: set a fixed ubuntu version instead of relying on latest Co-authored-by: Ashutosh Kumar <[email protected]> Co-authored-by: Ashutosh Kumar <[email protected]> Co-authored-by: Michael Firlus <[email protected]> Co-authored-by: Diomidis Spinellis <[email protected]> Co-authored-by: Kyle Dinh <[email protected]> Co-authored-by: Kyle Dinh <[email protected]>
fix(isMobilePhone): update
de-CH
locale (#1549)feat(isMobilePhone): add
fr-CH
locale (#1549)feat(isMobilePhone): add
it-CH
locale (#1549)Fix #1549
Updated regex in isMobilePhone for
de-CH
Added regex in isMobilePhone for
fr-CH
Added regex in isMobilePhone for
it-CH
Checklist