diff options
| author | Shipeng Feng <fsp261@gmail.com> | 2021-07-07 17:19:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-07 11:19:33 +0200 |
| commit | 68cc04887b3c5b7ce8f28eaae5de266db99ca9a6 (patch) | |
| tree | 3dc9bff8bf9ef5198ae57b4e102e5abe08295282 /tests/utils_tests | |
| parent | c51bf80d56cbcdbec1b243b8db086f35b4598947 (diff) | |
Fixed #32866 -- Fixed trimming trailing punctuation from escaped string in urlize().
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/test_html.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 30f5ba68e8..909620ea3f 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -251,6 +251,10 @@ class TestUtilsHtml(SimpleTestCase): '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>!' ), |
