Skip to content

Commit 87eac70

Browse files
authored
Add support for Russia in country code handling
1 parent 1173e38 commit 87eac70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PhoneNumbers.Utilities.TestGenerator/TestFileWriter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ private static string LookUpTrunkCode(string countryCode) =>
1010
{
1111
"AE" or "AL" or "AT" or "AU" or "AX" or "BA" or "BE" or "BG" or "BR" or "CH" or "DE" or "EG" or "FI" or "FR" or "GB" or "GG" or "GF" or "GP" or "HR" or "IE" or "IM" or "IL" or "JE" or "JO" or "KE" or "MD" or "ME" or "MK" or "MQ" or "NL" or "NG" or "NZ" or "PE" or "RE" or "RO" or "RS" or "SA" or "SE" or "SK" or "SI" or "TR" or "TZ" or "UA" or "UG" or "XK" or "YE" or "YT" or "ZA" => "0",
1212
"HU" => "06",
13-
"BY" or "LT" => "8",
13+
"BY" or "LT" or "RU" => "8",
1414
_ => string.Empty,
1515
};
1616

@@ -102,6 +102,7 @@ private static string CountryCodeToCountryInfoName(string countryCode) =>
102102
"RE" => "Reunion",
103103
"RO" => "Romania",
104104
"RS" => "Serbia",
105+
"RU" => "Russia",
105106
"SA" => "SaudiArabia",
106107
"SE" => "Sweden",
107108
"SG" => "Singapore",

0 commit comments

Comments
 (0)