- update libraries
- change NSLogDebug Marco
This commit is contained in:
1 parent
e93483ea53
commit
78a514ed18
71 files changed
+4640
-3485
No files matched your search
@@ -22,6 +22,8 @@
|
||||
|
||||
- (BOOL) isValidTaxCode;
|
||||
|
||||
- (BOOL) isValidFirstnameOrLastname;
|
||||
|
||||
- (NSString *) md5;
|
||||
|
||||
- (NSString*) sha1;
|
||||
|
||||
@@ -62,6 +62,15 @@
|
||||
return [urlTest evaluateWithObject:self];
|
||||
}
|
||||
|
||||
- (BOOL) isValidFirstnameOrLastname {
|
||||
|
||||
NSString *firstNameRegEx = @"^[a-zA-Z][ a-zA-Z\\s]+$";
|
||||
|
||||
NSPredicate *nameTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", firstNameRegEx];
|
||||
|
||||
return [nameTest evaluateWithObject:self];
|
||||
}
|
||||
|
||||
#pragma mark - Random String Method
|
||||
|
||||
+ (NSString *) getRandString: (int) length {
|
||||
|
||||
Reference in new issue
Block a user