Permalink
Browse files

Updating README

  • Loading branch information...
1 parent 135e78d commit 8fedbe84b56a06c05e2f984bc2489a76e9f9ca47 @alexfish alexfish committed Jan 17, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 README.md
View
@@ -97,11 +97,9 @@ Create the implementation.
if (nil == string)
string = [NSString string];
- NSError *error = NULL;
- NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[a-zA-Z .-]" options:0 error:&error];
- NSUInteger numberOfMatches = [regex numberOfMatchesInString:string options:0 range:NSMakeRange(0, string.length)];
+ self.regexString = @"[a-zA-Z .-]";
- return numberOfMatches == string.length;
+ return [super check:string];
}

0 comments on commit 8fedbe8

Please sign in to comment.