Ticket #11551: forms.fields.diff
File forms.fields.diff, 806 bytes (added by , 15 years ago) |
---|
-
Users/adam/Development/django-trunk/django/forms/fields.py
532 532 return f 533 533 534 534 url_re = re.compile( 535 r'^https?:// ' # http:// or https://535 r'^https?://|file:///?' # http:// or https:// or file:// or file:/// 536 536 r'(?:(?:[A-Z0-9]+(?:-*[A-Z0-9]+)*\.)+[A-Z]{2,6}|' #domain... 537 r'localhost|' # localhost...537 r'localhost|' # ... or localhost 538 538 r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip 539 r'(?::\d +)?' # optional port539 r'(?::\d{1,5})?' # optional port 540 540 r'(?:/?|/\S+)$', re.IGNORECASE) 541 541 542 542 class URLField(RegexField):