mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #32866 -- Fixed trimming trailing punctuation from escaped string in urlize().
This commit is contained in:
@@ -250,6 +250,10 @@ class TestUtilsHtml(SimpleTestCase):
|
||||
'Search for google.com/?q=! and see.',
|
||||
'Search for <a href="http://google.com/?q=">google.com/?q=</a>! and see.'
|
||||
),
|
||||
(
|
||||
'Search for google.com/?q=1<! and see.',
|
||||
'Search for <a href="http://google.com/?q=1%3C">google.com/?q=1<</a>! and see.'
|
||||
),
|
||||
(
|
||||
lazystr('Search for google.com/?q=!'),
|
||||
'Search for <a href="http://google.com/?q=">google.com/?q=</a>!'
|
||||
|
||||
Reference in New Issue
Block a user