- aggiornamento libreria per supportare diversi client id e client secret
This commit is contained in:
1 parent
1f625585b9
commit
6c8cf96e65
87 files changed
+2459
-1776
No files matched your search
@@ -30,4 +30,5 @@
|
||||
|
||||
- (NSString*) sha512;
|
||||
|
||||
|
||||
@end
|
||||
@@ -46,10 +46,13 @@
|
||||
}
|
||||
|
||||
- (BOOL) isValidUrl {
|
||||
NSString *urlRegEx =
|
||||
@"(http|https)://((\\w)*|([0-9]*)|([-|_])*)+([\\.|/]((\\w)*|([0-9]*)|([-|_])*))+";
|
||||
NSString *urlRegEx = @"(http|https)://((\\w)*|([0-9]*)|([-|_])*)+([\\.|/]((\\w)*|([0-9]*)|([-|_])*))+";
|
||||
NSString *urlRegEx2 =@"((?:http|https)://)?(?:www\\.)?[\\w\\d\\-_]+\\.\\w{2,3}(\\.\\w{2})?(/(?<=/)(?:[\\w\\d\\-./_]+)?)?";
|
||||
|
||||
NSPredicate *urlTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx];
|
||||
return [urlTest evaluateWithObject:self];
|
||||
NSPredicate *urlTest2 = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx2];
|
||||
|
||||
return [urlTest evaluateWithObject:self]|| [urlTest2 evaluateWithObject:self];
|
||||
}
|
||||
|
||||
- (BOOL) isValidTaxCode {
|
||||
|
||||
Reference in new issue
Block a user