diff --git a/django/utils/html.py b/django/utils/html.py
index cc83729..9816b9a 100644
a
|
b
|
from django.utils.text import normalize_newlines
|
18 | 18 | |
19 | 19 | # Configuration for urlize() function. |
20 | 20 | TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)'] |
21 | | WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('<', '>')] |
| 21 | WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>')] |
22 | 22 | |
23 | 23 | # List of possible strings used for bullets in bulleted lists. |
24 | 24 | DOTS = ['·', '*', '\u2022', '•', '•', '•'] |
diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py
index bdf3c86..8e800ef 100644
a
|
b
|
class DefaultFiltersTests(TestCase):
|
301 | 301 | |
302 | 302 | # Check urlize trims trailing period when followed by parenthesis - see #18644 |
303 | 303 | self.assertEqual(urlize('(Go to http://www.example.com/foo.)'), |
304 | | '(Go to <a href="http://www.example.com/foo" rel="nofollow">http://www.example.com/foo</a>.)') |
| 304 | '(Go to <a href="http://www.example.com/foo" rel="nofollow">http://www.example.com/foo</a>.)') |
| 305 | |
| 306 | # Check urlize doesn't crash when square bracket is appended to url (#19070) |
| 307 | self.assertEqual(urlize('[see www.example.com]'), |
| 308 | '[see <a href="http://www.example.com" rel="nofollow">www.example.com</a>]' ) |
| 309 | |
305 | 310 | |
306 | 311 | def test_wordcount(self): |
307 | 312 | self.assertEqual(wordcount(''), 0) |