Skip to content

Commit

Permalink
Bump to 3.1.5
Browse files Browse the repository at this point in the history
- #253 Fix Argentinian mobile numbers length
  • Loading branch information
Bossa573 committed Aug 18, 2021
1 parent f6017e6 commit 45ab35a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion __tests__/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ input_phone,input_country,not_validate_prefix,output_phone,output_country_alpha2
+86 166 51343779,,,+8616651343779,CN,CHN,+86,true,,Test for pattern 166,"returns +8616651343779,CHN",
+54 233 123 4567,,,+542331234567,AR,ARG,+54,true,Testing ARG numbers,Test for number without 9 prefix,"returns +542331234567,ARG",
+54 9 233 123 4567,,,+542331234567,AR,ARG,+54,true,,Test for number with 9 prefix,"returns +542331234567,ARG",
+54 15 233 123 4567,,,,,,,false,,Test for number with 15 prefix,"returns ",
+54 13 123 456,,,+5413123456,AR,ARG,+54,true,,Test for number with 2 + 6 digit,"returns +5413123456,ARG",
+54 13 123 4567,,,+54131234567,AR,ARG,+54,true,,Test for number with 2 + 7 digit,"returns +54131234567,ARG",
+54 13 123 45678,,,+541312345678,AR,ARG,+54,true,,Test for number with 2 + 8 digit,"returns +541312345678,ARG",
+54 133 123 45678,,,+5413312345678,AR,ARG,+54,true,,Test for number with 3 + 8 digit,"returns +5413312345678,ARG",
+54 1334 123 45678,,,+54133412345678,AR,ARG,+54,true,,Test for number with 4 + 8 digit,"returns +54133412345678,ARG",
+299 555299,,,+299555299,GL,GRL,+299,true,Testing GRL numbers,Test for numbers starting with 5,"returns +299555299,GRL",
+299 233299,,,+299233299,GL,GRL,+299,true,,Test for numbers starting with 2,"returns +299233299,GRL",
+299 321000,,,,,,,false,,Test for landlines,"returns ",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phone",
"version": "3.1.4",
"version": "3.1.5",
"description": "With a given country and phone number, validate and format the phone number to E.164 standard",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/data/country_phone_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default [
country_code: '54',
country_name: 'Argentina',
mobile_begin_with: ['1', '2', '3'], // Same for mobile and landlines
phone_number_lengths: [10]
phone_number_lengths: [8, 9, 10, 11, 12]
},
{
alpha2: 'AM',
Expand Down

0 comments on commit 45ab35a

Please sign in to comment.