Browse Source

Parsing issue with "(8108) 6309 390 906" (RU)

mandlil-patch-7
mandlil 2 years ago
committed by GitHub
parent
commit
1564ec2053
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java

+ 3
- 1
java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java View File

@ -2877,7 +2877,9 @@ public class PhoneNumberUtil {
if (defaultRegionMetadata != null) {
possibleCountryIddPrefix = defaultRegionMetadata.getInternationalPrefix();
if ( defaultRegionMetadata.getId().equals("RU") && possibleCountryIddPrefix.contains("810")) {
possibleCountryIddPrefix = "00";
if (new String(fullNumber).startsWith("8108")) {
possibleCountryIddPrefix = "00";
}
}
}


Loading…
Cancel
Save