diff options
| author | LarryBrid <camfulton@gmail.com> | 2014-07-02 11:51:51 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-02 20:36:53 -0400 |
| commit | a93ee5112d42d37187e30aa4edcc1864a79d384a (patch) | |
| tree | 7b389395df6528f56c68d83f7c8e7a93fd2a018e /tests | |
| parent | 42f5c8f39710691ce1606289698ee321a8ac0627 (diff) | |
Fixed #22941 - Added support for domain-only links with chars after the TLD to urlize.
It now works with something like google.com/foo/bar
Diffstat (limited to 'tests')
| -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 7ebef193fa..2e70a1c23b 100644 --- a/tests/defaultfilters/tests.py +++ b/tests/defaultfilters/tests.py @@ -264,6 +264,8 @@ class DefaultFiltersTests(TestCase): '<a href="http://www.google.com" rel="nofollow">www.google.com</a>') self.assertEqual(urlize('djangoproject.org'), '<a href="http://djangoproject.org" rel="nofollow">djangoproject.org</a>') + self.assertEqual(urlize('djangoproject.org/'), + '<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>') |
