monkey-style-guide-v2 0.0.57 → 0.0.59
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.
|
@@ -5649,7 +5649,7 @@ class MonkeyInputPhoneComponent {
|
|
|
5649
5649
|
getCountryByCallingCode(code) {
|
|
5650
5650
|
const cleanCode = code.replace('+', '');
|
|
5651
5651
|
return (getCountries().find((country) => {
|
|
5652
|
-
return getCountryCallingCode(country) === cleanCode;
|
|
5652
|
+
return getCountryCallingCode(country) === cleanCode || country === code;
|
|
5653
5653
|
}) || null);
|
|
5654
5654
|
}
|
|
5655
5655
|
isoToFlagEmoji(isoCode) {
|
|
@@ -5722,6 +5722,7 @@ class MonkeyInputPhoneComponent {
|
|
|
5722
5722
|
this.phoneFormatted = formatter.input(nationalPart);
|
|
5723
5723
|
this.performValue(nationalPart);
|
|
5724
5724
|
this.phoneValid = isValidPhoneNumber(nationalPart, countryCode);
|
|
5725
|
+
console.log(isValidPhoneNumber(nationalPart, countryCode));
|
|
5725
5726
|
this.validateValue();
|
|
5726
5727
|
}
|
|
5727
5728
|
ngAfterContentInit() { }
|