Przeglądaj źródła

fix: replace use of capitalizedString with uppercaseString for correct case transformation

Amir Khan 1 rok temu
rodzic
commit
ed9d8836dc

+ 1 - 1
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m

@@ -1579,7 +1579,7 @@ typedef NS_ERROR_ENUM(PsiphonTunnelErrorDomain, PsiphonTunnelErrorCode) {
         // CTCarrier deprecated with no replacement as of iOS 16 so there is no alternative API to
         // get the carrier country code; [CTCarrier isoCountryCode] returns @"--" on iOS >=16.
         
-        return [[[CNContactsUserDefaults sharedDefaults] countryCode] capitalizedString];
+        return [[[CNContactsUserDefaults sharedDefaults] countryCode] uppercaseString];
         
     } else {
         CTTelephonyNetworkInfo *networkInfo = nil;