Comments (2)
Hi there @xream,
From what I understand the current logic for validating mobile number for China is kind of loosen.
It only check for the first two digit.
Lines 350 to 355 in 0546c98
Hence it should work just fine. For those numbers which are 199, 198, 166 respectively. But anyway extra test case is needed against those new pattern would be great to avoid confusion I think.
from phone.
PR is merged for the extra test cases,
please reopen this issue if needed, thanks for the contribution
from phone.
Related Issues (20)
- Support for Curaçao HOT 6
- US mobile_begin_wit has duplicated code HOT 3
- Austrailian phone number failing validation HOT 1
- Can't get strictDetection to work as intended HOT 2
- New area codes 656 and 771 HOT 6
- Valid Dutch numbers fails verification HOT 3
- Encountered some invalid phone numbers, please troubleshoot HOT 4
- function to get the area code HOT 1
- Missing Canada 782 area code HOT 2
- Missing 368 area code for Alberta, Canada
- New Canada area codes from 2020 onwards are missing HOT 1
- `phone('+441471323991').isValid` returns false? HOT 1
- Any plan on supporting landline phone number? HOT 1
- Nigerian numbers are up to 11 digits long but the lib assumes they should be 10 digits HOT 3
- Does not correctly parse Zimbabwe numbers +263 HOT 8
- Chinese cell phone numbers will be recognized as US cell phone numbers HOT 4
- Issue with Bahrain country code HOT 3
- Does Not Validate A Valid Phone Number HOT 1
- Library incorrectly flagging UAE phone numbers as incorrect HOT 8
- Missing Angullia 2642, 2644 area code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phone.