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