From 2e612cd799df0555bda6c4dad4e91078eea5536b Mon Sep 17 00:00:00 2001 From: Jesse Tan Date: Thu, 16 May 2024 11:38:33 +0200 Subject: [PATCH 1/2] feat: format number for The Netherlands --- src/data/countryData.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/data/countryData.ts b/src/data/countryData.ts index b97c604..177d812 100644 --- a/src/data/countryData.ts +++ b/src/data/countryData.ts @@ -213,7 +213,21 @@ export const defaultCountries: CountryData[] = [ ['Namibia', 'na', '264'], ['Nauru', 'nr', '674'], ['Nepal', 'np', '977'], - ['Netherlands', 'nl', '31', '.. ........'], + [ + 'Netherlands', + 'nl', + '31', + { + '/^06/': '(.). .........', + '/^6/': '. .........', + '/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/': + '(.).. ........', + '/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/': + '.. ........', + '/^0/': '(.)... .......', + default: '... .......', + } + ], ['New Caledonia', 'nc', '687'], ['New Zealand', 'nz', '64', '...-...-....'], ['Nicaragua', 'ni', '505'], From a7e97500d1ad810fcb441e373f9877f260d7682d Mon Sep 17 00:00:00 2001 From: Yurii Brusentsov Date: Sat, 18 May 2024 17:23:31 +0300 Subject: [PATCH 2/2] chore: fix country data formatting --- src/data/countryData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/countryData.ts b/src/data/countryData.ts index 177d812..edb6d4a 100644 --- a/src/data/countryData.ts +++ b/src/data/countryData.ts @@ -216,7 +216,7 @@ export const defaultCountries: CountryData[] = [ [ 'Netherlands', 'nl', - '31', + '31', { '/^06/': '(.). .........', '/^6/': '. .........', @@ -226,7 +226,7 @@ export const defaultCountries: CountryData[] = [ '.. ........', '/^0/': '(.)... .......', default: '... .......', - } + }, ], ['New Caledonia', 'nc', '687'], ['New Zealand', 'nz', '64', '...-...-....'],