aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Core/FIRApp.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firebase/Core/FIRApp.m')
-rw-r--r--Firebase/Core/FIRApp.m9
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, "