Merge pull request #3899 from alphagov/bump-utils-new-invalid-address-char

Bump utils version for new invalid address character
This commit is contained in:
Rebecca Law
2021-05-27 13:53:38 +01:00
committed by GitHub
7 changed files with 10 additions and 10 deletions

View File

@@ -1413,7 +1413,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: @ ( ) = [ ] ” \\ / , < > ~'
)

View File

@@ -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 %}

View File

@@ -559,11 +559,11 @@ LETTER_VALIDATION_MESSAGES = {
'invalid-char-in-address': {
'title': 'Theres 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': {