diff --git a/app/__init__.py b/app/__init__.py index be7f08146..9936aa1ee 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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())) diff --git a/app/main/views/templates.py b/app/main/views/templates.py index e51d2ae53..b6dd1df4a 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -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"Templates won't save with these characters ™ ∞ • – ≠ “ ‘ … ≤ ≥ or any emoji present. " + s1 = "Templates won't save with these characters ™ ∞ • – ≠ “ ‘ … ≤ ≥ or any emoji present. " s2 = "
The errors they create lead to texts displaying incorrectly on older mobile phones." warning = ""