Skip to content

Commit

Permalink
revert invalid NL postcode regex
Browse files Browse the repository at this point in the history
  • Loading branch information
melwynfurtado committed Sep 13, 2023
1 parent 81fe25b commit c336b67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/postcode-regexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export const POSTCODE_REGEXES: Map<string, RegExp> = new Map([
[CountryCode.CH, /^\d{4}$/],
[CountryCode.AT, /^(?!0)\d{4}$/],
[CountryCode.ES, /^(?:0[1-9]|[1-4]\d|5[0-2])\d{3}$/],
[CountryCode.NL, /^\d{4})\s*([A-Z]{2}$/],
[CountryCode.BE, /^\d{4}$/],
[CountryCode.NL, /^\d{4}[ ]?[A-Z]{2}$/], [CountryCode.BE, /^\d{4}$/],
[CountryCode.DK, /^\d{4}$/],
[CountryCode.SE, /^(SE-)?\d{3}[ ]?\d{2}$/],
[CountryCode.NO, /^\d{4}$/],
Expand Down

0 comments on commit c336b67

Please sign in to comment.