1. Patrick Mézard
  2. libphonenumber-csharp

Commits

Patrick Mézard  committed b8c5b82

csharp: do not fill code maps with empty strings

This is a merge of r484

  • Participants
  • Parent commits e4ac97e
  • Branches csharp

Comments (0)

Files changed (2)

File csharp/PhoneNumbers/BuildMetadataFromXml.cs

View file
  • Ignore whitespace
                 {
                     // For most countries, there will be only one region code for the country calling code.
                     List<String> listWithRegionCode = new List<String>(1);
-                    listWithRegionCode.Add(regionCode);
+                    if(regionCode.Length > 0)
+                        listWithRegionCode.Add(regionCode);
                     countryCodeToRegionCodeMap[countryCode] = listWithRegionCode;
                 }
             }

File csharp/PhoneNumbers/Properties/AssemblyInfo.cs

View file
  • Ignore whitespace
 //
 // You can specify all the values or you can default the Build and Revision Numbers 
 // by using the '*' as shown below:
-// [assembly: AssemblyVersion("4.9.0.45")]
-[assembly: AssemblyVersion("4.9.0.45")]
-[assembly: AssemblyFileVersion("4.9.0.45")]
+// [assembly: AssemblyVersion("4.9.0.46")]
+[assembly: AssemblyVersion("4.9.0.46")]
+[assembly: AssemblyFileVersion("4.9.0.46")]