From 856f9008137cb6d67041e0089494878f1b724d1a Mon Sep 17 00:00:00 2001 From: Adam Waite Date: Mon, 19 Oct 2015 23:18:07 +0100 Subject: [PATCH 1/3] Podspec Signed-off-by: Adam Waite --- AJWValidator.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AJWValidator.podspec b/AJWValidator.podspec index 944df56..56e64df 100644 --- a/AJWValidator.podspec +++ b/AJWValidator.podspec @@ -23,7 +23,7 @@ Built in validations: DESC - s.homepage = "https://github.com/adamwaite/AJWValidator" + s.homepage = "https://github.com/adamwaite/Validator" s.license = { :type => 'MIT', :file => 'LICENSE' } @@ -33,7 +33,7 @@ DESC s.platform = :ios s.platform = :ios, '6.0' - s.source = { :git => "https://github.com/adamwaite/AJWValidator.git", :tag => "v0.0.8" } + s.source = { :git => "https://github.com/adamwaite/Validator.git", :tag => "v0.0.8" } s.source_files = 'AJWValidator', 'AJWValidator/**/*.{h,m}' s.public_header_files = 'AJWValidator/AJWValidator.h', 'AJWValidator/UIView+AJWValidator.h' From 9eb815aad7d51befa28d67b7b638083b970e26fa Mon Sep 17 00:00:00 2001 From: Adam Waite Date: Mon, 19 Oct 2015 23:27:16 +0100 Subject: [PATCH 2/3] Fix dead link to master Signed-off-by: Adam Waite --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5407ab4..6399336 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AJWValidator -> šŸ’€ This library has been rewritten in Swift 2.0 and is no longer maintained in Objective-C (See [master](https://github.com/adamwaite/Validator/master). Here rests the final version (0.0.8). +> šŸ’€ This library has been rewritten in Swift 2.0 and is no longer maintained in Objective-C (See [master](https://github.com/adamwaite/Validator). Here rests the final version (0.0.8). AJWValidator provides drop in user input validation for your iOS apps. It features a number of built in validation rules, some convenience methods to verify user input, a validation state change handler block, a public error messages collection, and a category on UIView to provide validate-as-input functionality to supported input view types. It's not opinionated, it's your app and it's up to you how you want handle validation errors on the UI. From 77988f6a70f996d53484d03e5904cd061706fa52 Mon Sep 17 00:00:00 2001 From: Rolandas Razma Date: Mon, 20 Jun 2016 11:59:03 +0100 Subject: [PATCH 3/3] fix .london validation email@mail.london not validating because of too strict rule --- AJWValidator/AJWValidator.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AJWValidator/AJWValidator.m b/AJWValidator/AJWValidator.m index e317345..6d5a1de 100644 --- a/AJWValidator/AJWValidator.m +++ b/AJWValidator/AJWValidator.m @@ -52,7 +52,7 @@ of this software and associated documentation files (the "Software"), to deal } } -NSString * const AJWValidatorRegularExpressionPatternEmail = @"^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-zā€Œā€‹]{2,4})$"; +NSString * const AJWValidatorRegularExpressionPatternEmail = @"^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-zā€Œā€‹]{2,6})$"; NSString * const AJWValidatorRegularExpressionPatternContainsNumber = @".*\\d.*"; @@ -343,4 +343,4 @@ - (NSUInteger)ruleCount return [self.rules count]; } -@end \ No newline at end of file +@end