Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'development'

  • Loading branch information...
commit fac222f853c58409fe1c951bf537432d8ce07805 2 parents 447f8c8 + 31ca49a
@alexfish alexfish authored
View
2  US2FormValidationFramework/source/base/US2ValidatorTextViewPrivate.m
@@ -152,7 +152,7 @@ - (void)textViewDidChange:(UITextView *)textView
}
// Inform delegate about changes
- if ([_delegate respondsToSelector:@selector(validatorUIChange:)])
+ if ([_delegate respondsToSelector:@selector(validatorUIDidChange:)])
[_delegate validatorUIDidChange:_validatorTextView];
}
View
11 US2FormValidationFramework/source/conditions/US2ConditionRange.m
@@ -48,16 +48,21 @@ - (id)init
- (BOOL)check:(NSString *)string
{
+ BOOL success = NO;
+
if (0 == _range.location
&& 0 == _range.length)
- return YES;
+ success = YES;
if (nil == string)
string = [NSString string];
- self.regexString = [NSString stringWithFormat:@"^.{%d,%d}$", _range.location, _range.length];
+ if(string.length >= _range.location && string.length <= _range.length)
+ {
+ success = YES;
+ }
- return [super check:string];
+ return success;
}
Please sign in to comment.
Something went wrong with that request. Please try again.