Fix: Validate Austrian post codes to exclude invalid values starting with 0 by weswaldix · Pull Request #15 · brick/postcode
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 15
Conversation
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).
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters