From 3b007b513e799a140e87722605a7c8e188349395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90=E9=BE=99?= <zcl@zhangchenglongdeMacBook-Pro.local> Date: Thu, 22 Mar 2018 09:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81IP=E5=9C=B0=E5=9D=80=E6=9C=89?= =?UTF-8?q?=E6=95=88=E6=80=A7=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JKCategories/Foundation/NSString/NSString+JKNormalRegex.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JKCategories/Foundation/NSString/NSString+JKNormalRegex.m b/JKCategories/Foundation/NSString/NSString+JKNormalRegex.m index e992190..80ee59d 100644 --- a/JKCategories/Foundation/NSString/NSString+JKNormalRegex.m +++ b/JKCategories/Foundation/NSString/NSString+JKNormalRegex.m @@ -323,7 +323,7 @@ - (BOOL)jk_isIPAddress{ BOOL rc = [pre evaluateWithObject:self]; if (rc) { - NSArray *componds = [self componentsSeparatedByString:@","]; + NSArray *componds = [self componentsSeparatedByString:@"."]; BOOL v = YES; for (NSString *s in componds) {