From 14fe06a046e6476e5a58cb8d1da1f1a6b87a4a9d Mon Sep 17 00:00:00 2001 From: Justin Counts Date: Wed, 14 Aug 2024 19:14:08 -0700 Subject: [PATCH] Add US 645 Area Code (Miami-Dade County 2023) (#396) --- __tests__/data.csv | 3 ++- src/data/country_phone_data.ts | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/__tests__/data.csv b/__tests__/data.csv index a2bb5e5..7e6016a 100644 --- a/__tests__/data.csv +++ b/__tests__/data.csv @@ -183,4 +183,5 @@ input_phone,input_country,not_validate_prefix,output_phone,output_country_alpha2 +599 7001234,,,+5997001234,BQ,BES,+599,true,,,"returns BES 2", +599 9583 1517,,,+59995831517,CW,CUW,+599,true,,,"returns ANT 1", +599 9683 1517,,,+59996831517,CW,CUW,+599,true,,,"returns ANT 2", -+1 (353) 555-8900,,,+13535558900,US,USA,+1,true,,353 area code,"returns +13535558900,USA", \ No newline at end of file ++1 (353) 555-8900,,,+13535558900,US,USA,+1,true,,353 area code,"returns +13535558900,USA", ++1 (645) 555-1234,,,+16455551234,US,USA,+1,true,,645 area code,"returns +16455551234,USA", diff --git a/src/data/country_phone_data.ts b/src/data/country_phone_data.ts index bfc2a07..061a2af 100644 --- a/src/data/country_phone_data.ts +++ b/src/data/country_phone_data.ts @@ -16,7 +16,7 @@ export default [ '515', '516', '517', '518', '520', '530', '531', '534', '539', '540', '541', '551', '557', '559', '561', '562', '563', '564', '567', '570', '571', '572', '573', '574', '575', '580', '582', '585', '586', '601', '602', '603', '605', '606', '607', '608', '609', '610', '612', '614', '615', '616', '617', '618', '619', '620', - '623', '626', '627', '628', '629', '630', '631', '636', '640', '641', '646', '650', '651', '656', '657', '659', '660', + '623', '626', '627', '628', '629', '630', '631', '636', '640', '641', '645', '646', '650', '651', '656', '657', '659', '660', '661', '662', '667', '669', '678', '679', '680', '681', '682', '689', '701', '702', '703', '704', '706', '707', '708', '712', '713', '714', '715', '716', '717', '718', '719', '720', '724', '725', '726', '727', '728', '730', '731', '732', '734', '737', '740', '743', '747', '752', '754', '757', '760', '762', '763', '764', '765', '769', '770', '771', @@ -87,14 +87,14 @@ export default [ country_name: 'Andorra', mobile_begin_with: ['3', '4', '6'], phone_number_lengths: [6] - }, + }, // https://en.wikipedia.org/wiki/Telephone_numbers_in_Cura%C3%A7ao_and_the_Caribbean_Netherlands { - alpha2: "BQ", - alpha3: "BES", - country_code: "599", - country_name: "Caribbean Netherlands", - mobile_begin_with: ['3', '416', '700', '701','795'], + alpha2: "BQ", + alpha3: "BES", + country_code: "599", + country_name: "Caribbean Netherlands", + mobile_begin_with: ['3', '416', '700', '701','795'], phone_number_lengths: [7] }, {