chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2024-10-19 14:44:55 +02:00
parent c9ce29f206
commit 40e894df8b
294 changed files with 14209 additions and 4192 deletions

View file

@ -48,15 +48,12 @@ export default class PhoneValidator extends Validator {
}
let countryCode: CountryCode = undefined
if (country) {
countryCode = <CountryCode> country()?.toUpperCase()
countryCode = <CountryCode>country()?.toUpperCase()
}
if (this.isShortCode(str, countryCode)) {
return str
}
return parsePhoneNumberFromString(
str,
countryCode
)?.formatInternational()
return parsePhoneNumberFromString(str, countryCode)?.formatInternational()
}
/**