Django

Code

Changeset 2299

Show
Ignore:
Timestamp:
02/10/06 09:38:54 (3 years ago)
Author:
adrian
Message:

Improved url_re in django.core.validators to accept https. Thanks, Eric Hsu

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/validators.py

    r2134 r2299  
    2424phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNORECASE) 
    2525slug_re = re.compile(r'^[-\w]+$') 
    26 url_re = re.compile(r'^http://\S+$') 
     26url_re = re.compile(r'^https?://\S+$') 
    2727 
    2828from django.conf.settings import JING_PATH