diff options
| author | Tom Christie | 2013-04-01 14:06:21 -0700 |
|---|---|---|
| committer | Tom Christie | 2013-04-01 14:06:21 -0700 |
| commit | 5ed70324273d8093335f21155975267b22a641d2 (patch) | |
| tree | aec6a9c92b3c1ea2bffbe89c525b6d35b8ad8cdc /rest_framework | |
| parent | 7d7c03eb2464110c281ce35e5cc73f02c349068d (diff) | |
| parent | 76d1c47905680fafa32596d1dda8d9ae20827acf (diff) | |
| download | django-rest-framework-5ed70324273d8093335f21155975267b22a641d2.tar.bz2 | |
Merge pull request #771 from glic3rinu/master
Fixed IPv6 support for urlize_quoted_links template tag
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/templatetags/rest_framework.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index b6ab2de3..1d7a499f 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -181,7 +181,7 @@ TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "'"] WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ("'", "'")] word_split_re = re.compile(r'(\s+)') -simple_url_re = re.compile(r'^https?://\w', re.IGNORECASE) +simple_url_re = re.compile(r'^https?://\[?\w', re.IGNORECASE) simple_url_2_re = re.compile(r'^www\.|^(?!http)\w[^@]+\.(com|edu|gov|int|mil|net|org)$', re.IGNORECASE) simple_email_re = re.compile(r'^\S+@\S+\.\S+$') |
