1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +00:00

Refs #30686 -- Removed unused regexes in django.utils.text.

Unused since 6ee37ada32.
This commit is contained in:
Mariusz Felisiak 2024-02-15 08:39:14 +01:00 committed by GitHub
parent 8db593de05
commit 3cadeea077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,9 +32,6 @@ def capfirst(x):
# Set up regular expressions # 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_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]|$)))") re_camel_case = _lazy_re_compile(r"(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))")