fix(isMobilePhone): update de-CH locale (#1549)#1554
Merged
profnandaa merged 3 commits intovalidatorjs:masterfrom Dec 17, 2020
ashut0shk:fix-swiss-phonenumber-validation
Merged
fix(isMobilePhone): update de-CH locale (#1549)#1554profnandaa merged 3 commits intovalidatorjs:masterfrom ashut0shk:fix-swiss-phonenumber-validation
profnandaa merged 3 commits intovalidatorjs:masterfrom
ashut0shk:fix-swiss-phonenumber-validation
Conversation
added 2 commits
December 14, 2020 19:00
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.
|
tux-tn
requested changes
Dec 15, 2020
Member
There was a problem hiding this comment.
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
tux-tn
approved these changes
Dec 15, 2020
Member
tux-tn
left a comment
There was a problem hiding this comment.
Thank you for making the necessary changes! LGTM 🎉
Let's wait for @ezkemboi or @profnandaa Review
ezkemboi
approved these changes
Dec 16, 2020
profnandaa
approved these changes
Dec 17, 2020
profnandaa
pushed a commit
that referenced
this pull request
Feb 15, 2021
* 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]>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(isMobilePhone): update
de-CHlocale (#1549)feat(isMobilePhone): add
fr-CHlocale (#1549)feat(isMobilePhone): add
it-CHlocale (#1549)Fix #1549
Updated regex in isMobilePhone for
de-CHAdded regex in isMobilePhone for
fr-CHAdded regex in isMobilePhone for
it-CHChecklist