Browse Source

changes if condition for the prefix

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

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

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


Loading…
Cancel
Save