mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #23715 -- Prevented urlize from treating a trailing ! as part of an URL
Thanks to 57even for the report.
This commit is contained in:
committed by
Tim Graham
parent
98da408964
commit
ed2f96819c
@@ -19,7 +19,7 @@ from .html_parser import HTMLParser, HTMLParseError
|
||||
|
||||
|
||||
# Configuration for urlize() function.
|
||||
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', '\'']
|
||||
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', '\'', '!']
|
||||
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ('\'', '\'')]
|
||||
|
||||
# List of possible strings used for bullets in bulleted lists.
|
||||
|
||||
Reference in New Issue
Block a user