diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-09-23 11:24:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-23 11:24:50 -0700 |
| commit | 4ff389dcdc15884eef059b2b8dea4b710e0a3b98 (patch) | |
| tree | 2753ba5900f858a586186309b5b388a3af6d16b8 /django/utils/html.py | |
| parent | 2c501203601c9610e69155c57bfe235f155344e2 (diff) | |
Removed unused regexes from django.utils.html.
Last uses removed in commit 8b81dee60c1533e714a310fa5c3907356042a64c.
Diffstat (limited to 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index 84379caa9c..b083df99cf 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -33,14 +33,6 @@ word_split_re = re.compile(r'''([\s<>"']+)''') simple_url_re = re.compile(r'^https?://\[?\w', re.IGNORECASE) simple_url_2_re = re.compile(r'^www\.|^(?!http)\w[^@]+\.(com|edu|gov|int|mil|net|org)($|/.*)$', re.IGNORECASE) simple_email_re = re.compile(r'^\S+@\S+\.\S+$') -link_target_attribute_re = re.compile(r'(<a [^>]*?)target=[^\s>]+') -html_gunk_re = re.compile( - r'(?:<br clear="all">|<i><\/i>|<b><\/b>|<em><\/em>|<strong><\/strong>|' - r'<\/?smallcaps>|<\/?uppercase>)', re.IGNORECASE) -hard_coded_bullets_re = re.compile( - r'((?:<p>(?:%s).*?[a-zA-Z].*?</p>\s*)+)' % '|'.join(re.escape(x) for x in DOTS), re.DOTALL -) -trailing_empty_content_re = re.compile(r'(?:<p>(?: |\s|<br \/>)*?</p>\s*)+\Z') @keep_lazy(six.text_type, SafeText) |
