Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4812 -- Fixed an octal escape in regular expression that is us…

…ed in the `isValidEmail` validator, thanks batchman@free.fr.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0927ab92b20b9852dc1cef6c81453e2ee95bd01b 1 parent 541c9ff
Gary Wilson Jr. gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/validators.py
2  django/core/validators.py
View
@@ -24,7 +24,7 @@
ansi_datetime_re = re.compile('^%s %s$' % (_datere, _timere))
email_re = re.compile(
r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*" # dot-atom
- r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*"' # quoted-string
+ r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"' # quoted-string
r')@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}$', re.IGNORECASE) # domain
decimal_re = re.compile(r'^-?(?P<digits>\d+)(\.(?P<decimals>\d+))?$')
integer_re = re.compile(r'^-?\d+$')
Please sign in to comment.
Something went wrong with that request. Please try again.