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

FFaker::AddressUK.postcode should generate valid UK postcodes #353

Open
nunosilva800 opened this issue Feb 7, 2018 · 0 comments
Open

FFaker::AddressUK.postcode should generate valid UK postcodes #353

nunosilva800 opened this issue Feb 7, 2018 · 0 comments

Comments

@nunosilva800
Copy link

Some postcodes generated with FFaker::AddressUK.postcode are invalid.

I noticed since I got some random errors on CI, in models with validations from gem: https://github.com/dgilperez/validates_zipcode

For example: XX7 7PE.

You can also check that this is indeed an invalid UK postcode in here: https://postcodes.io/

Afaik the most up-to-date regex is: http://i18napis.appspot.com/address/data/GB

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

No branches or pull requests

1 participant