From 3cadeea077a98367a4ed344d645df0aff243de91 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 15 Feb 2024 08:39:14 +0100 Subject: [PATCH] Refs #30686 -- Removed unused regexes in django.utils.text. Unused since 6ee37ada3241ed263d8d1c2901b030d964cbd161. --- django/utils/text.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/utils/text.py b/django/utils/text.py index 9560ebc678..bad8f2f2da 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -32,9 +32,6 @@ def capfirst(x): # Set up regular expressions -re_words = _lazy_re_compile(r"<[^>]+?>|([^<>\s]+)", re.S) -re_chars = _lazy_re_compile(r"<[^>]+?>|(.)", re.S) -re_tag = _lazy_re_compile(r"<(/)?(\S+?)(?:(\s*/)|\s.*?)?>", re.S) re_newlines = _lazy_re_compile(r"\r\n|\r") # Used in normalize_newlines re_camel_case = _lazy_re_compile(r"(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))")