From 2049fd5c7676cd513f317b6053b4b61cb04c9698 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Tue, 18 Mar 2025 16:07:58 -0400 Subject: [PATCH] Fixing formatting errors --- app/main/validators.py | 1 - app/main/views/templates.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/validators.py b/app/main/validators.py index 797589913..131c70a77 100644 --- a/app/main/validators.py +++ b/app/main/validators.py @@ -119,7 +119,6 @@ class OnlySMSCharacters: ) - class LettersNumbersSingleQuotesFullStopsAndUnderscoresOnly: regex = re.compile(r"^[a-zA-Z0-9\s\._']+$") diff --git a/app/main/views/templates.py b/app/main/views/templates.py index d7596f28a..53cdf0064 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -682,7 +682,8 @@ def count_content_length(service_id, template_type): def _get_content_count_error_and_message_for_template(template): if template.template_type == "sms": - s1 = "Looks like your template may have one of these characters • ™ ∞ ≤ or ≥ or emoji, which won't save." + s1 = "Looks like your template may have one of these characters " \ + "• ™ ∞ ≤ or ≥ or emoji, which won't save." s2 = "
Please remove any unaccepted characters or emojis and try again." # Define characters that should be blocked