diff --git a/CHANGES b/CHANGES index f499e40..a4d8c8e 100644 --- a/CHANGES +++ b/CHANGES @@ -2,3 +2,4 @@ v0.1.0, 1/14/2013 -- Initial release. v0.2.0, 1/15/2013 -- Added Classy validator and tests v0.2.1, 1/15/2013 -- Fixed validate continuing on a field after failing a Required validation v0.2.2, 1/15/2013 -- Added Pattern regex validator and tests +v0.2.3, 1/15/2013 -- Added missing Not(Pattern()) error message diff --git a/validator/__init__.py b/validator/__init__.py index f082e39..1cf0965 100644 --- a/validator/__init__.py +++ b/validator/__init__.py @@ -57,6 +57,8 @@ def not_lambda(value): not_lambda.err_message = "must not fall between %s and %s" % (validator.start, validator.end) elif validator.__name__ == "class_lambda": not_lambda.err_message = "must not be an instance of %s or its subclasses" % validator.base_class + elif validator.__name__ == "pattern_lambda": + not_lambda.err_message = "must not match regex pattern %s" % validator.pattern return not_lambda