From cf4a21a28b7775997c1dcace77c7191a898a52e6 Mon Sep 17 00:00:00 2001 From: mandlil <138015259+mandlil@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:04:34 +0530 Subject: [PATCH] changes if condition for the prefix --- .../src/com/google/i18n/phonenumbers/PhoneNumberUtil.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java b/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java index bb32de77e..f42c76068 100644 --- a/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +++ b/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java @@ -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 =