mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #32866 -- Fixed trimming trailing punctuation from escaped string in urlize().
This commit is contained in:
parent
c51bf80d56
commit
68cc04887b
2 changed files with 7 additions and 2 deletions
|
|
@ -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>!'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue