mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 22:21:34 -04:00
Update utils to version 43.8.
Invalid characters for the first line of a postal address now include < >
This commit is contained in:
@@ -1362,7 +1362,7 @@ class LetterAddressForm(StripWhitespaceForm):
|
||||
|
||||
if address.has_invalid_characters:
|
||||
raise ValidationError(
|
||||
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / ,'
|
||||
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >'
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
Last line of the address must be a real UK postcode
|
||||
{% endif %}
|
||||
{% elif item.as_postal_address.has_invalid_characters %}
|
||||
Address lines must not start with any of the following characters: @ ( ) = [ ] ” \ / ,
|
||||
Address lines must not start with any of the following characters: @ ( ) = [ ] ” \ / , < >
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endcall %}
|
||||
|
||||
@@ -557,11 +557,11 @@ LETTER_VALIDATION_MESSAGES = {
|
||||
'invalid-char-in-address': {
|
||||
'title': 'There’s a problem with the address for this letter',
|
||||
'detail': (
|
||||
"Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / ,"
|
||||
"Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >"
|
||||
),
|
||||
'summary': (
|
||||
"Validation failed because address lines must not start with any of the "
|
||||
"following characters: @ ( ) = [ ] ” \\ / ,"
|
||||
"following characters: @ ( ) = [ ] ” \\ / , < >"
|
||||
),
|
||||
},
|
||||
'notify-tag-found-in-content': {
|
||||
|
||||
Reference in New Issue
Block a user