From 78261f04adc5908e1920ec84d4ad44a7a65970bc Mon Sep 17 00:00:00 2001 From: petrosg Date: Sat, 15 Jul 2017 22:49:16 +0200 Subject: [PATCH] Fix for NL postal code (#984) According to wikipedia, https://en.wikipedia.org/wiki/Postal_codes_in_the_Netherlands the postal code for the Netherlands should not include one of SA, SD, SS as a suffix. This is now fixed. Also added test for nl_locale --- lib/locales/nl.yml | 2 +- test/test_nl_locale.rb | 50 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 test/test_nl_locale.rb diff --git a/lib/locales/nl.yml b/lib/locales/nl.yml index f96cea0487..5e6272ee79 100644 --- a/lib/locales/nl.yml +++ b/lib/locales/nl.yml @@ -44,7 +44,7 @@ nl: street_address: - "#{street_name} #{building_number}" - postcode: ["#### ??"] + postcode: /\d{4} [A-Z]{2}(?