From de9bb00b826acd1f3428c041693f4d9f7b11db8d Mon Sep 17 00:00:00 2001 From: life Date: Sat, 22 Aug 2015 00:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=B8=8D=E6=94=AF=E6=8C=81'-?= =?UTF-8?q?'=E5=9F=9F=E5=90=8D=20#2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/leanote/leanote-ios/issues/2 --- Leanote/controller/auth/LoginViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Leanote/controller/auth/LoginViewController.m b/Leanote/controller/auth/LoginViewController.m index c955ed7..3d3400c 100755 --- a/Leanote/controller/auth/LoginViewController.m +++ b/Leanote/controller/auth/LoginViewController.m @@ -527,7 +527,8 @@ static NSInteger const LoginVerificationCodeNumberOfLines = 2; return NO; } // 判断是否合法 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]; return [urlTest evaluateWithObject:url]; // NSURL *siteURL = [NSURL URLWithString:[NSURL IDNEncodedURL:self.siteUrlText.text]];