summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorseanfagan <seanfagandesign@gmail.com>2017-03-21 11:27:42 -0500
committerTim Graham <timograham@gmail.com>2017-03-21 12:49:46 -0400
commitb406c3ea2889b386efc5d97999ff1de3c2ddf128 (patch)
tree407e92c2d1461947f53e1b227f7140c7e0e2b478 /django
parentb06855facdd0fd1eecae7bce75c815c8a6af19b6 (diff)
[1.11.x] Fixed #27945 -- Clarified that RegexValidator searches with the regex.
Backport of 325db2a8c3453a56db5e0df0eed37476eb67802d from master
Diffstat (limited to 'django')
-rw-r--r--django/core/validators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/validators.py b/django/core/validators.py
index 11a3d8e69f..ea18685fdb 100644
--- a/django/core/validators.py
+++ b/django/core/validators.py
@@ -54,8 +54,8 @@ class RegexValidator(object):
def __call__(self, value):
"""
- Validates that the input matches the regular expression
- if inverse_match is False, otherwise raises ValidationError.
+ Validate that the input contains a match for the regular expression
+ if inverse_match is False, otherwise raise ValidationError.
"""
if not (self.inverse_match is not bool(self.regex.search(
force_text(value)))):