From 1a574d83fce88ea95dba4ae97c1105e9c19b27e3 Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Mon, 7 Oct 2024 10:00:29 -0300 Subject: [PATCH] Fix DNK postal code rules --- CHANGELOG.md | 4 ++++ react/country/DNK.ts | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67778885..fd0997e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Denmark (DNK) postal code rules. + ## [3.37.2] - 2024-10-02 ### Added diff --git a/react/country/DNK.ts b/react/country/DNK.ts index 2b2a9bc5..381bffe6 100644 --- a/react/country/DNK.ts +++ b/react/country/DNK.ts @@ -15,8 +15,10 @@ const rules: PostalCodeRules = { }, { name: 'postalCode', - maxLength: 50, - label: 'postalCode', + maxLength: 4, + label: 'Postnumre', + mask: '1234', + regex: '^\\d{4}$', size: 'small', autoComplete: 'nope', postalCodeAPI: false,