Move BITValidateEmail to BITHockeyHelper named bit_validateEmail and add some tests

This commit is contained in:
Andreas Linde
2013-09-25 15:48:58 +02:00
parent 56ca20098b
commit 32318cac36
8 changed files with 81 additions and 17 deletions

View File

@@ -30,6 +30,7 @@
#import "BITAuthenticator_Private.h"
#import "HockeySDKPrivate.h"
#import "HockeySDK.h"
#import "BITHockeyHelper.h"
#import "BITHockeyAppClient.h"
@interface BITAuthenticationViewController ()<UITextFieldDelegate> {
@@ -152,7 +153,7 @@
if (self.requirePassword && [self.password length] == 0)
return NO;
if (![self.email length] || !BITValidateEmail(self.email))
if (![self.email length] || !bit_validateEmail(self.email))
return NO;
return YES;