Skip to content

Commit

Permalink
Merge pull request #262 from rosvik/rosvik/fix-no-sj-numbers
Browse files Browse the repository at this point in the history
Fix SJ numbers
  • Loading branch information
Bossa573 committed Sep 20, 2021
2 parents b4d059e + 3701cec commit 0eb32ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions __tests__/data.csv
Expand Up @@ -166,3 +166,5 @@ input_phone,input_country,not_validate_prefix,output_phone,output_country_alpha2
+44 079111 23456,,,+447911123456,GB,GBR,+44,true,,Test strict detect switch,"returns +447911123456,GBR",
+44 079111 23456,,,,,,,false,,,returns empty result for strict detect,true
+44 079111 23456,,,+447911123456,GB,GBR,+44,true,,"returns +447911123456,GBR for explicitly false",false,
+4710000000,,,,,,,false,Testing NO / SJ numbers,Should not be valid NO or SJ,returns,
+4779000000,,,+4779000000,SJ,SJM,+47,true,,Should be SJ (Svalbard / Jan Mayen),"returns +4779000000,SJM",
2 changes: 1 addition & 1 deletion src/data/country_phone_data.ts
Expand Up @@ -1509,7 +1509,7 @@ export default [
alpha3: 'SJM',
country_code: '47',
country_name: 'Svalbard And Jan Mayen',
mobile_begin_with: [],
mobile_begin_with: [79],
phone_number_lengths: [8]
},
{
Expand Down

0 comments on commit 0eb32ec

Please sign in to comment.