|
|
|
@ -3502,7 +3502,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberForTypeWithReason = |
|
|
|
// getRegionCodeForNumber will not work if the number is possible but not
|
|
|
|
// valid. There is in fact one country calling code (290) where the possible
|
|
|
|
// number pattern differs between various regions (Saint Helena and Tristan
|
|
|
|
// da Cuñha), but this is handled by putting all possible lengths for any
|
|
|
|
// da Cunha), but this is handled by putting all possible lengths for any
|
|
|
|
// country with this country calling code in the metadata for the default
|
|
|
|
// region in this case.
|
|
|
|
if (!this.hasValidCountryCallingCode_(countryCode)) { |
|
|
|
@ -3996,7 +3996,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.checkRegionForParsing_ = function( |
|
|
|
* method is quite lenient and looks for a number in the input text (raw input) |
|
|
|
* and does not check whether the string is definitely only a phone number. To |
|
|
|
* do this, it ignores punctuation and white-space, as well as any text before |
|
|
|
* the number (e.g. a leading “Tel: ”) and trims the non-number bits. It will |
|
|
|
* the number (e.g. a leading "Tel: ") and trims the non-number bits. It will |
|
|
|
* accept a number in any format (E164, national, international etc), assuming |
|
|
|
* it can be interpreted with the defaultRegion supplied. It also attempts to |
|
|
|
* convert any alpha characters into digits if it thinks this is a vanity number |
|
|
|
|