Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Validate Austrian post codes to exclude invalid values starting with 0 #15

Merged
merged 2 commits into from
Sep 19, 2024

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
8 checks passed
@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