mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #1550 -- Changed MatchesRegularExpression validator to use .search(), not .match(). Thanks, Gary Wilson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -379,7 +379,7 @@ class MatchesRegularExpression: | ||||
|         self.error_message = error_message | ||||
|  | ||||
|     def __call__(self, field_data, all_data): | ||||
|         if not self.regexp.match(field_data): | ||||
|         if not self.regexp.search(field_data): | ||||
|             raise ValidationError(self.error_message) | ||||
|  | ||||
| class AnyValidator: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user