Ticket #4833: 4833.diff
File 4833.diff, 773 bytes (added by , 17 years ago) |
---|
-
django/core/validators.py
30 30 email_re = re.compile( 31 31 r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*" # dot-atom 32 32 r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"' # quoted-string 33 r')@(?:[A-Z0-9-]+ \.)+[A-Z]{2,6}$', re.IGNORECASE) # domain33 r')@(?:[A-Z0-9-]+(?:\.(?!$)|$))+$', re.IGNORECASE) # domain 34 34 integer_re = re.compile(r'^-?\d+$') 35 35 ip4_re = re.compile(r'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$') 36 36 phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNORECASE)