diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-02-10 15:38:54 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-02-10 15:38:54 +0000 |
| commit | d8b4d29004d518459a74c5b588d3455da2871e42 (patch) | |
| tree | 1c3335889290c2c4eedc8dfa5b42dc5dd85397f8 | |
| parent | 93980706bf114d11efc3513adf1936e0b507c74a (diff) | |
Improved url_re in django.core.validators to accept https. Thanks, Eric Hsu
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/validators.py b/django/core/validators.py index a4e33637bc..1f70192838 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -23,7 +23,7 @@ integer_re = re.compile(r'^-?\d+$') 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}$') phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNORECASE) slug_re = re.compile(r'^[-\w]+$') -url_re = re.compile(r'^http://\S+$') +url_re = re.compile(r'^https?://\S+$') from django.conf.settings import JING_PATH from django.utils.translation import gettext_lazy, ngettext |
