diff options
| author | LarryBrid <jcameronfulton@gmail.com> | 2014-07-03 16:37:56 -0400 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-07-04 09:00:16 +0200 |
| commit | 1bb1d3168b813e050df757ff40cdaf2feab45fdb (patch) | |
| tree | d372ff1b482efa07def765485f6c7ac85434cafa /tests/defaultfilters | |
| parent | 814bcc33951db8a469b9bba26fb021fc2d8ad480 (diff) | |
Updated urlize regex following a93ee5112d4
Prevent urlize from turning some.organization, an.intern etc.
into urls. Refs #22941.
Diffstat (limited to 'tests/defaultfilters')
| -rw-r--r-- | tests/defaultfilters/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/defaultfilters/tests.py b/tests/defaultfilters/tests.py index 2e70a1c23b..22dc04666e 100644 --- a/tests/defaultfilters/tests.py +++ b/tests/defaultfilters/tests.py @@ -268,6 +268,8 @@ class DefaultFiltersTests(TestCase): '<a href="http://djangoproject.org/" rel="nofollow">djangoproject.org/</a>') self.assertEqual(urlize('info@djangoproject.org'), '<a href="mailto:info@djangoproject.org">info@djangoproject.org</a>') + self.assertEqual(urlize('some.organization'), + 'some.organization'), # Check urlize with https addresses self.assertEqual(urlize('https://google.com'), |
