diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-09-10 06:38:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-10 06:38:25 -0700 |
commit | e27a3072f6287f2cc05762e61f017bd6b506ab58 (patch) | |
tree | c2a58514e0cfb1967b706f182c79fa5e159d8b0b /Firebase/Core/FIRApp.m | |
parent | 2631d33d292ef9a8ff056c6c112dc640eade1d30 (diff) |
Non-functional changes to reduce FirebaseCore by 792 bytes (#250)
Diffstat (limited to 'Firebase/Core/FIRApp.m')
-rw-r--r-- | Firebase/Core/FIRApp.m | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Firebase/Core/FIRApp.m b/Firebase/Core/FIRApp.m index 758c924..718734b 100644 --- a/Firebase/Core/FIRApp.m +++ b/Firebase/Core/FIRApp.m @@ -158,11 +158,10 @@ static FIRApp *sDefaultApp; if ([name isEqualToString:kFIRDefaultAppName]) { [NSException raise:kFirebaseCoreErrorDomain format:@"Name cannot be __FIRAPP_DEFAULT."]; } - NSString *lowerCaseName = [name lowercaseString]; - for (NSInteger charIndex = 0; charIndex < lowerCaseName.length; charIndex++) { - char character = [lowerCaseName characterAtIndex:charIndex]; - if (!((character >= 'a' && character <= 'z') || (character >= '0' && character <= '9') || - character == '_' || character == '-')) { + for (NSInteger charIndex = 0; charIndex < name.length; charIndex++) { + char character = [name characterAtIndex:charIndex]; + if (!((character >= 'a' && character <= 'z') || (character >= 'A' && character <= 'Z') || + (character >= '0' && character <= '9') || character == '_' || character == '-')) { [NSException raise:kFirebaseCoreErrorDomain format: @"App name should only contain Letters, " |