monkey-style-guide 2.0.96 → 2.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/data/country-codes.json +1466 -0
- package/bundles/monkey-style-guide.umd.js +6 -1
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/core/utils/utils.js +7 -2
- package/fesm2015/monkey-style-guide.js +6 -1
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/monkey-style-guide-2.0.97.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.96.tgz +0 -0
|
@@ -702,10 +702,15 @@
|
|
|
702
702
|
return false;
|
|
703
703
|
try {
|
|
704
704
|
var country = phoneUtil.getRegionCodeForCountryCode(internationalNumber);
|
|
705
|
+
console.log('country');
|
|
706
|
+
console.log(country);
|
|
705
707
|
var number = phoneUtil.parse(phone, country);
|
|
706
|
-
|
|
708
|
+
console.log('number');
|
|
709
|
+
console.log(number);
|
|
710
|
+
return phoneUtil.isValidNumberForRegion(number, country);
|
|
707
711
|
}
|
|
708
712
|
catch (e) {
|
|
713
|
+
console.log(e);
|
|
709
714
|
//not to do
|
|
710
715
|
}
|
|
711
716
|
return false;
|