mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #20364 -- Changed urlize regexes to include quotation marks as punctation.
Thanks to EmilStenstrom for raising this, and to Chris Piwoński for all of the fixes and most of the tests.
This commit is contained in:
committed by
Florian Apolloner
parent
99c87f1410
commit
6c06adad1d
@@ -15,8 +15,8 @@ from .html_parser import HTMLParser, HTMLParseError
|
||||
|
||||
|
||||
# Configuration for urlize() function.
|
||||
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)']
|
||||
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>')]
|
||||
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', '\'']
|
||||
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ('\'', '\'')]
|
||||
|
||||
# List of possible strings used for bullets in bulleted lists.
|
||||
DOTS = ['·', '*', '\u2022', '•', '•', '•']
|
||||
|
||||
Reference in New Issue
Block a user