mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Added quotes to TRAILING_PUNCTUATION used by urlize_quoted_links
This commit is contained in:
parent
5f48b4a77e
commit
2c0363ddae
|
@ -180,7 +180,7 @@ def add_class(value, css_class):
|
||||||
|
|
||||||
|
|
||||||
# Bunch of stuff cloned from urlize
|
# Bunch of stuff cloned from urlize
|
||||||
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)']
|
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "'"]
|
||||||
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'),
|
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'),
|
||||||
('"', '"'), ("'", "'")]
|
('"', '"'), ("'", "'")]
|
||||||
word_split_re = re.compile(r'(\s+)')
|
word_split_re = re.compile(r'(\s+)')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user