Comments (2)
The 'input' happens to work because you're reading from an internal data structure which today has a field called 'input.
The enum comes from libphonenumber with the addition of getNationalSignificantNumberโ which for some reason is handled differently in libphonenumber.
If you use 'input' for the value passed into awesome-phonenumber, I'd recommend you store that separately instead to be sure your code still works if I change this implementation in the future.
from awesome-phonenumber.
consider 'input' for 3.0
from awesome-phonenumber.
Related Issues (20)
- Phone number ending with special characters considered as valid HOT 1
- Parse German phone number not working currently in specific numbers HOT 1
- Not correct validation for south africa county HOT 1
- Since 5.3.1, `possibility` incorrect for US "+1 111 111 1111"
- Bug: French number (+33) starting with 71 / 72 HOT 1
- Update: Google libphonenumber version HOT 1
- Bug: parsePhoneNumber omits countryCode when it wouldn't have to HOT 1
- Update: libphonenumber released new version HOT 1
- findNumbers HOT 1
- Bug: Falesly mark invalid numbers as valid
- Bug: invalid number can set `undefined` as a `type`
- Update libphonenumber: new version 8.13.26 is released
- 6-digit EU-numbers
- getExample causes a runtime error on some countries HOT 1
- '7501c73d0c4dc' is a valid phone number HOT 1
- How to get Significant number with Mask
- How to use CDN awesome-phonenumber for html file
- Bump libphonenumber from v8.13.27 to v8.13.32
- Inconsistent formatting of international phone numbers
- parsePhoneNumber response marked as invalid HOT 4
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 awesome-phonenumber.