From bc6ea63ccfeb44da13519c422b50bec198c4800c Mon Sep 17 00:00:00 2001 From: GeorgeLimaDev Date: Tue, 16 Jun 2026 08:16:38 -0300 Subject: [PATCH 1/2] Fix Paraguay's location typo --- CHANGELOG.md | 4 ++++ react/country/PRY.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d2b0d71..a6772e63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Deduplicated test fixtures: shared Google Geocoder payloads (factory exported from `postalCodeGoogleAddress.js`), address/geolocation mock bases, and `sharedMockRuleFields` for `useOneLevel` / `useThreeLevels` to satisfy Sonar CPD on new code. +### Fixed + +- Paraguay's locality Itauguá typo + ## [3.42.0] - 2025-12-09 ### Added diff --git a/react/country/PRY.ts b/react/country/PRY.ts index 2e8ffb9a..895c0876 100644 --- a/react/country/PRY.ts +++ b/react/country/PRY.ts @@ -128,7 +128,7 @@ const countryData = { 'Fernando De La Mora': '2300', Guarambare: '2670', Ita: '2710', - Itagua: '2740', + Itauguá: '2740', 'Julian Augusto Saldivar': '2630', Lambare: '2420', Limpio: '2020', From ea1647f4817c9fb3c977e8d7d872f54f28c7de8b Mon Sep 17 00:00:00 2001 From: GeorgeLimaDev Date: Wed, 1 Jul 2026 08:19:43 -0300 Subject: [PATCH 2/2] Fix VIR postal code validation --- CHANGELOG.md | 2 +- react/country/PRY.ts | 2 +- react/country/VIR.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6772e63..b4e849e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed -- Paraguay's locality Itauguá typo +- Virgin Islands' postal code validation ## [3.42.0] - 2025-12-09 diff --git a/react/country/PRY.ts b/react/country/PRY.ts index 895c0876..2e8ffb9a 100644 --- a/react/country/PRY.ts +++ b/react/country/PRY.ts @@ -128,7 +128,7 @@ const countryData = { 'Fernando De La Mora': '2300', Guarambare: '2670', Ita: '2710', - Itauguá: '2740', + Itagua: '2740', 'Julian Augusto Saldivar': '2630', Lambare: '2420', Limpio: '2020', diff --git a/react/country/VIR.ts b/react/country/VIR.ts index c332073e..9565c8fd 100644 --- a/react/country/VIR.ts +++ b/react/country/VIR.ts @@ -19,8 +19,8 @@ const rules: PostalCodeRules = { fixedLabel: 'ZIP', required: true, mask: '99999-9999', - regex: '^008(01|02|03|04|05|20|21|22|23|24|30|31|40|41|50|51)-\d{0,4}$', - // Asserts zipcode starts with 008, then contains one of the local accepted area values, then followed by hyphen and 4 digits. + regex: '^008(01|02|03|04|05|20|21|22|23|24|30|31|40|41|50|51)(-\d{4})?$', + // Asserts zipcode starts with 008, then contains one of the local accepted area values, optionally followed by hyphen and exactly 4 digits. postalCodeAPI: true, forgottenURL: 'https://tools.usps.com/go/ZipLookupAction!input.action', size: 'small',