Addressing a test

This commit is contained in:
Jonathan Bobel
2025-03-17 16:49:30 -04:00
parent fbf0fb1f0d
commit 43c0d6244a
2 changed files with 2 additions and 3 deletions

View File

@@ -682,4 +682,4 @@ def slugify(text):
"""
Converts text to lowercase, replaces spaces with hyphens, and removes invalid characters.
"""
return re.sub(r'[^a-z0-9-]', '', re.sub(r'\s+', '-', text.lower()))
return re.sub(r"[^a-z0-9-]", "", re.sub(r"\s+", "-", text.lower()))

View File

@@ -685,9 +685,8 @@ def _is_latin1(s):
def _get_content_count_error_and_message_for_template(template):
url = "https://en.wikipedia.org/wiki/ISO/IEC_8859-1"
if template.template_type == "sms":
s1 = f"<html><body>Templates won't save with these characters ™ ∞ • ≠ “ … ≤ ≥ or any emoji present. "
s1 = "<html><body>Templates won't save with these characters ™ ∞ • ≠ “ … ≤ ≥ or any emoji present. "
s2 = "<br>The errors they create lead to texts displaying incorrectly on older mobile phones.</body></html>"
warning = ""