Comments (5)
You may use other module, like country-data to convert those code
to iso 3166 alpha3.
In addition, I guess the MCC list is NOT valid.
at least I found one problem:
"454": {
588 "full": "Hongkong, China",
589 "code": "hk",
590 "prefix": "+82"
591 },
HK prefix should be "+852"
from phone.
I didn't changed other data like country codes in my PR I've just added MCC_codes. Why would you force us to fork your project rather than contributing to it?
I am open to review but please don't close PRs like so until you've discussed it and people making it understood the reasons why you choose not to consider it.
It is an open source project isn't it? I spent a bunch of time doing it, I opened a ticket ways before the PR so you had time to discuss how you wanted the thing.
MCC are a standard for mobile phone numbers this PR only adds two useful features:
- let the use make a use of the all iso database
- let the user map phones with MCC
It didn't know country-database but why doesn't this project use country-database as a dependency rather than having a blob of json no-sql database at the beginning of the file ?
Don't worry if you don't have time for this just say it and don't worry anymore.
from phone.
Thanks for your contribution.
Let me think again if we should merge your code to our main branch.
from phone.
I think this would be great as well. Specially because I imagine in a lot of cases you have the numerical code rather than country abbreviation.
from phone.
MCC lookup should not be the purpose of this library, will close this issue
from phone.
Related Issues (20)
- Canadian mobile number marked as invalid HOT 1
- Swiss fixed phone numbers marked as invalid HOT 3
- 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
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.