From c36241f37d5907083533976875b8c149c6582715 Mon Sep 17 00:00:00 2001 From: Neekey Date: Fri, 6 Jul 2018 11:15:54 +1000 Subject: [PATCH 1/2] Update iso3166Data.js Add south africa numbers suppoort for numbers begin with `1`, `2`, `3`, `4`, `5`, see here: https://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa --- lib/iso3166Data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iso3166Data.js b/lib/iso3166Data.js index 26ae408..f4b5a42 100644 --- a/lib/iso3166Data.js +++ b/lib/iso3166Data.js @@ -1854,7 +1854,7 @@ module.exports = [ alpha3: 'ZAF', country_code: '27', country_name: 'South Africa', - mobile_begin_with: ['6', '7', '8'], + mobile_begin_with: ['1', '2', '3', '4', '5', 6', '7', '8'], phone_number_lengths: [9] }, { From 6d1333c5ec0fc2311018743a4b65261f394da666 Mon Sep 17 00:00:00 2001 From: Neekey Date: Fri, 6 Jul 2018 11:20:07 +1000 Subject: [PATCH 2/2] Fix the syntax error for ZA numbers --- lib/iso3166Data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iso3166Data.js b/lib/iso3166Data.js index f4b5a42..abc12b7 100644 --- a/lib/iso3166Data.js +++ b/lib/iso3166Data.js @@ -1854,7 +1854,7 @@ module.exports = [ alpha3: 'ZAF', country_code: '27', country_name: 'South Africa', - mobile_begin_with: ['1', '2', '3', '4', '5', 6', '7', '8'], + mobile_begin_with: ['1', '2', '3', '4', '5', '6', '7', '8'], phone_number_lengths: [9] }, {