Skip to content

Conversation

@weswaldix
Copy link
Contributor

Previously, postal codes such as '0000' or '0999' were considered valid, but in reality, Austrian postal codes always start with digits from 1 to 9. This update corrects the validation to ensure compliance with the Austrian postal code system
(see: https://en.wikipedia.org/wiki/Postal_codes_in_Austria#System).

…g with 0

Previously, postal codes such as '0000' or '0999' were considered valid, but in reality, Austrian postal codes always start with digits from 1 to 9. This update corrects the validation to ensure compliance with the Austrian postal code system (see: https://en.wikipedia.org/wiki/Postal_codes_in_Austria#System).
@BenMorel
Copy link
Member

Thank you, can you please add a note about this in the docblock?

Postcodes consist of 4 digits, without separator.

Postcodes consist of 4 digits, without separator. The first digit must be 1-9.

@weswaldix
Copy link
Contributor Author

Done so - I hope that's ok (I don't work with GitHub Pull Requests usualy) ^^

@BenMorel BenMorel merged commit df15506 into brick:master Sep 19, 2024
@BenMorel
Copy link
Member

Thank you, @weswaldix!

@BenMorel
Copy link
Member

Released as 0.3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants