Skip to content

Commit

Permalink
Added quotes to TRAILING_PUNCTUATION used by urlize_quoted_links
Browse files Browse the repository at this point in the history
  • Loading branch information
glic3rinu committed Mar 27, 2013
1 parent 5f48b4a commit 2c0363d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/templatetags/rest_framework.py
Expand Up @@ -180,7 +180,7 @@ def add_class(value, css_class):


# Bunch of stuff cloned from urlize
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)']
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "'"]
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('&lt;', '&gt;'),
('"', '"'), ("'", "'")]
word_split_re = re.compile(r'(\s+)')
Expand Down

0 comments on commit 2c0363d

Please sign in to comment.