forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
c9ce29f206
commit
40e894df8b
294 changed files with 14209 additions and 4192 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue