mirror of
https://github.com/leanote/leanote-ios.git
synced 2025-10-15 15:40:44 +00:00
@@ -527,7 +527,8 @@ static NSInteger const LoginVerificationCodeNumberOfLines = 2;
|
|||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
// 判断是否合法 http://leanote.com
|
// 判断是否合法 http://leanote.com
|
||||||
NSString *urlRegEx = @"(http|https)://((\\w)*|([0-9]*)|([-|_])*)+([:|\\.|/]((\\w)*|([0-9]*)|([-|_])*))+";
|
// http://www.no-ip.biz
|
||||||
|
NSString *urlRegEx = @"(http|https)://((\\w)*([0-9]*)|([-|_])*)+\\.([\\w0-9\\-|_\\./:])*";
|
||||||
NSPredicate *urlTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx];
|
NSPredicate *urlTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx];
|
||||||
return [urlTest evaluateWithObject:url];
|
return [urlTest evaluateWithObject:url];
|
||||||
// NSURL *siteURL = [NSURL URLWithString:[NSURL IDNEncodedURL:self.siteUrlText.text]];
|
// NSURL *siteURL = [NSURL URLWithString:[NSURL IDNEncodedURL:self.siteUrlText.text]];
|
||||||
|
Reference in New Issue
Block a user