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 numerical part of Dutch postcode #1512

Merged
merged 2 commits into from
Jan 22, 2019
Merged

Fix numerical part of Dutch postcode #1512

merged 2 commits into from
Jan 22, 2019

Conversation

tilsammans
Copy link
Contributor

Dutch postcodes start at 1000, there is never a 0 on the first position,

Dutch postcodes start at 1000, there is never a 0 on the first position,
@tilsammans
Copy link
Contributor Author

And the letters can be written more consisely:

([A-RT-Z][A-Z]|[S][BCE-RT-Z])

(two options: two letters but never an S,
or an S followed by anything but A, D, or S.)

@tilsammans
Copy link
Contributor Author

In case you're wondering why: for some they refer to WWII and they wouldn't want it in their address.

I am pretty sure nobody under 50 cares, but there you go.

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing 👍

Could you write a test for this change?

@tilsammans
Copy link
Contributor Author

tilsammans commented Jan 19, 2019 via email

@tilsammans
Copy link
Contributor Author

Super easy to setup a local repo, good job! Test added.

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vbrazo vbrazo merged commit 6be2870 into faker-ruby:master Jan 22, 2019
@tilsammans tilsammans deleted the patch-1 branch May 2, 2019 22:06
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Fix numerical part of Dutch postcode

Dutch postcodes start at 1000, there is never a 0 on the first position,

* updated test for postcode with stricter regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants