Skip to content

Commit

Permalink
feat: add xk to phone data (#386)
Browse files Browse the repository at this point in the history
* feat: add xk to phone data

* fix: added references for kosovo
  • Loading branch information
alekangelov authored Jun 13, 2024
1 parent 93b5055 commit f34cf4e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
13 changes: 7 additions & 6 deletions __tests__/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ input_phone,input_country,not_validate_prefix,output_phone,output_country_alpha2
+4779000000,,,+4779000000,SJ,SJM,+47,true,,Should be SJ (Svalbard / Jan Mayen),"returns +4779000000,SJM",
+36 50 1234567,,,+36501234567,HU,HUN,+36,true,,Hungary phone number 50 prefix,"returns +36501234567,HUN",
+599 9683 1517,,,+59996831517,CW,CUW,+5999,true,,,"returns +59996831517,CUW",
+996 226123123,,,+996226123123,KG,KGZ,+996,true,,,"Kyrgyzstan test 1",
+996 206123123,,,+996206123123,KG,KGZ,+996,true,,,"Kyrgyzstan test 2",
+996 312583123,,,+996312583123,KG,KGZ,+996,true,,,"Kyrgyzstan test 4",
+996 312973123,,,+996312973123,KG,KGZ,+996,true,,,"Kyrgyzstan test 5",
+996 912973123,,,+996912973123,KG,KGZ,+996,true,,,"Kyrgyzstan test 6",
+996 312573123,,,,,,,false,,,"Kyrgyzstan test 7",
+996 226123123,,,+996226123123,KG,KGZ,+996,true,,,Kyrgyzstan test 1,
+996 206123123,,,+996206123123,KG,KGZ,+996,true,,,Kyrgyzstan test 2,
+996 312583123,,,+996312583123,KG,KGZ,+996,true,,,Kyrgyzstan test 4,
+996 312973123,,,+996312973123,KG,KGZ,+996,true,,,Kyrgyzstan test 5,
+996 912973123,,,+996912973123,KG,KGZ,+996,true,,,Kyrgyzstan test 6,
+996 312573123,,,,,,,false,,,Kyrgyzstan test 7,
048 999 999,XK,,+38348999999,XK,XKX,+383,true,Testing Kosovo number,,,
12 changes: 11 additions & 1 deletion src/data/country_phone_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,16 @@ export default [
mobile_begin_with: ['1'],
phone_number_lengths: [9, 10]
},
// https://www.howtocallabroad.com/kosovo/
// https://en.wikipedia.org/wiki/Telephone_numbers_in_Kosovo
{
alpha2: "XK",
alpha3: "XKX",
country_code: "383",
country_name: "Kosovo, Republic of",
mobile_begin_with: ["43", "44", "45", "46", "47", "48", "49"],
phone_number_lengths: [8],
},
{
alpha2: 'KW',
alpha3: 'KWT',
Expand Down Expand Up @@ -1914,4 +1924,4 @@ export default [
mobile_begin_with: ['71', '73', '77', '78'],
phone_number_lengths: [9]
}
];
];

0 comments on commit f34cf4e

Please sign in to comment.