From fcdf3643e59a1f967910333264047943ba3c6ad2 Mon Sep 17 00:00:00 2001 From: Jaehwa Han Date: Mon, 1 Apr 2013 16:10:24 -0400 Subject: [PATCH] accept iso country code regardless of case --- RMPhoneFormat/RMPhoneFormat.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMPhoneFormat/RMPhoneFormat.m b/RMPhoneFormat/RMPhoneFormat.m index 803dfe8..b30ab38 100644 --- a/RMPhoneFormat/RMPhoneFormat.m +++ b/RMPhoneFormat/RMPhoneFormat.m @@ -648,7 +648,7 @@ - (id)initWithDefaultCountry:(NSString *)countryCode { NSAssert(_data, @"The file PhoneFormats.dat is not in the resource bundle. See the README."); if (countryCode.length) { - _defaultCountry = countryCode; + _defaultCountry = [countryCode lowercaseString]; } else { NSLocale *loc = [NSLocale currentLocale]; _defaultCountry = [[loc objectForKey:NSLocaleCountryCode] lowercaseString];