libphonenumber-js
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -89,3 +89,3 @@ 'use strict'; | ||
if (country_code) { | ||
if (country_code && _metadata2.default.countries[country_code]) { | ||
this.default_country = country_code; | ||
@@ -92,0 +92,0 @@ } |
{ | ||
"name": "libphonenumber-js", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "A simpler (and smaller) rewrite of Google Android's popular libphonenumber library", | ||
@@ -5,0 +5,0 @@ "main": "index.common.js", |
@@ -110,3 +110,3 @@ // This is an enhanced port of Google Android `libphonenumber`'s | ||
{ | ||
if (country_code) | ||
if (country_code && metadata.countries[country_code]) | ||
{ | ||
@@ -113,0 +113,0 @@ this.default_country = country_code |
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
1085873