libphonenumber-js
Advanced tools
Comparing version 0.2.24 to 0.2.25
@@ -178,3 +178,6 @@ 'use strict'; | ||
if (formatted_number) { | ||
this.valid = true; | ||
if (this.country) { | ||
this.valid = true; | ||
} | ||
return formatted_number; | ||
@@ -181,0 +184,0 @@ } |
@@ -0,1 +1,6 @@ | ||
0.2.25 / 30.12.2016 | ||
=================== | ||
* A bit more precise `valid` flag for "as you type" formatter | ||
0.2.22 / 28.12.2016 | ||
@@ -2,0 +7,0 @@ =================== |
{ | ||
"name": "libphonenumber-js", | ||
"version": "0.2.24", | ||
"version": "0.2.25", | ||
"description": "A simpler (and smaller) rewrite of Google Android's popular libphonenumber library", | ||
@@ -5,0 +5,0 @@ "main": "index.common.js", |
@@ -159,2 +159,6 @@ # libphonenumber-js | ||
## React | ||
There's also a React component utilizing this library: [`react-phone-number-input`](https://github.com/halt-hammerzeit/react-phone-number-input) | ||
<!-- ## To do | ||
@@ -161,0 +165,0 @@ |
@@ -280,3 +280,7 @@ // This is an enhanced port of Google Android `libphonenumber`'s | ||
{ | ||
this.valid = true | ||
if (this.country) | ||
{ | ||
this.valid = true | ||
} | ||
return formatted_number | ||
@@ -283,0 +287,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1122478
4869
273