Skip to content

Commit

Permalink
Generated files for metadata
Browse files Browse the repository at this point in the history
daviddrysdale committed May 3, 2024
1 parent 989ca0a commit 76113d2
Showing 44 changed files with 165 additions and 142 deletions.
8 changes: 4 additions & 4 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
@@ -3439,6 +3439,10 @@
'40777':{'en': 'Digi Mobil'},
'4078':{'en': 'Telekom'},
'4079':{'en': 'Vodafone'},
'4168':{'en': 'Swisscom'},
'4169':{'en': 'Swisscom'},
'4172':{'en': 'Swisscom'},
'4173':{'en': 'Swisscom'},
'417500':{'en': 'Swisscom'},
'417507':{'en': 'Swisscom'},
'417508':{'en': 'Swisscom'},
@@ -10015,8 +10019,4 @@
'553199106':{'en': 'TIM'},
'553199107':{'en': 'TIM'},
'553199108':{'en': 'TIM'},
'553199109':{'en': 'TIM'},
'55319911':{'en': 'TIM'},
'55319912':{'en': 'TIM'},
'55319913':{'en': 'TIM'},
}
8 changes: 4 additions & 4 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
@@ -19,6 +19,10 @@
# limitations under the License.

data = {
'553199109':{'en': 'TIM'},
'55319911':{'en': 'TIM'},
'55319912':{'en': 'TIM'},
'55319913':{'en': 'TIM'},
'55319914':{'en': 'TIM'},
'55319915':{'en': 'TIM'},
'553199161':{'en': 'TIM'},
@@ -10015,8 +10019,4 @@
'5699582':{'en': 'Movistar'},
'5699583':{'en': 'Movistar'},
'5699584':{'en': 'Movistar'},
'5699585':{'en': 'Claro'},
'5699586':{'en': 'Claro'},
'5699587':{'en': 'Claro'},
'5699588':{'en': 'Claro'},
}
26 changes: 22 additions & 4 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
@@ -19,6 +19,10 @@
# limitations under the License.

data = {
'5699585':{'en': 'Claro'},
'5699586':{'en': 'Claro'},
'5699587':{'en': 'Claro'},
'5699588':{'en': 'Claro'},
'5699589':{'en': 'Claro'},
'569959':{'en': 'Entel'},
'5699600':{'en': 'Movistar'},
@@ -506,7 +510,8 @@
'592708':{'en': 'GTT'},
'592709':{'en': 'GTT'},
'59271':{'en': 'E-Networks'},
'592721':{'en': 'GTT'},
'592720':{'en': 'E-Networks'},
'592721':{'en': 'Digicel Guyana'},
'592722':{'en': 'Digicel Guyana'},
'592725':{'en': 'GTT'},
'592726':{'en': 'GTT'},
@@ -1325,7 +1330,10 @@
'658090':{'en': 'SingTel'},
'658091':{'en': 'M1'},
'658092':{'en': 'Simba'},
'658093':{'en': 'SingTel'},
'658094':{'en': 'M1'},
'658095':{'en': 'SingTel'},
'658096':{'en': 'Simba'},
'6581':{'en': 'StarHub'},
'65810':{'en': 'M1'},
'65812':{'en': 'SingTel'},
@@ -2394,6 +2402,8 @@
'67688':{'en': 'Digicel'},
'67689':{'en': 'Digicel'},
'6769':{'en': 'Digicel'},
'67768':{'en': 'Satsol'},
'67769':{'en': 'Satsol'},
'6777':{'en': 'Solomon Telekom'},
'6778':{'en': 'BMobile'},
'6779':{'en': 'Smile'},
@@ -8676,6 +8686,7 @@
'99255':{'en': 'Megafon'},
'99270':{'en': 'Tcell'},
'99271':{'en': 'Babilon-M'},
'99275':{'en': 'Babilon-M'},
'99277':{'en': 'Tcell'},
'99278':{'en': 'Megafon'},
'99280':{'en': 'ZET-MOBILE'},
@@ -8711,6 +8722,7 @@
'9947':{'en': 'Nar Mobile'},
'99499':{'en': 'Bakcell'},
'99550001':{'en': 'Cellfie'},
'99550002':{'en': 'Icell Telecom'},
'995500050':{'en': 'Silknet'},
'995500051':{'en': 'Silknet'},
'995500052':{'en': 'Silknet'},
@@ -8724,7 +8736,8 @@
'99550010':{'en': 'Cellfie'},
'99550011':{'en': 'Silknet'},
'9955002':{'en': 'Silknet'},
'9955003':{'en': 'Silknet'},
'9955003':{'en': 'Unicell Mobile'},
'99550033':{'en': 'Silknet'},
'9955004':{'en': 'Silknet'},
'99550050':{'en': 'MagtiCom'},
'99550055':{'en': 'Silknet'},
@@ -8736,6 +8749,7 @@
'995501':{'en': 'Cellfie'},
'9955050':{'en': 'Silknet'},
'9955055':{'en': 'MagtiCom'},
'995507':{'en': 'Globalcell'},
'995510':{'en': 'Silknet'},
'99551100':{'en': 'MagtiCom'},
'99551101':{'en': 'Silknet'},
@@ -8753,17 +8767,20 @@
'99552222':{'en': 'MagtiCom'},
'99552225':{'en': 'Silknet'},
'9955225':{'en': 'Silknet'},
'995525':{'en': 'Globalcell'},
'995530':{'en': 'Silknet'},
'9955333':{'en': 'MagtiCom'},
'9955335':{'en': 'Silknet'},
'995535':{'en': 'Globalcell'},
'995540':{'en': 'Silknet'},
'99554444':{'en': 'MagtiCom'},
'9955445':{'en': 'Silknet'},
'995545':{'en': 'Globalcell'},
'995550':{'en': 'MagtiCom'},
'99555000':{'en': 'Silknet'},
'99555005':{'en': 'Silknet'},
'99555050':{'en': 'Silknet'},
'99555055':{'en': 'Datacom'},
'99555055':{'en': 'Globalcell'},
'995551':{'en': 'MagtiCom'},
'9955520':{'en': 'Premium Net International SRL'},
'9955522':{'en': 'Asanet'},
@@ -8788,7 +8805,8 @@
'995577':{'en': 'Silknet'},
'995579':{'en': 'Cellfie'},
'995580':{'en': 'Silknet'},
'995585':{'en': 'MagtiCom'},
'9955855':{'en': 'Globalcell'},
'9955858':{'en': 'MagtiCom'},
'995588':{'en': 'Silknet'},
'995590':{'en': 'Silknet'},
'995591':{'en': 'MagtiCom'},
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_AR.py
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@

PHONE_METADATA_AR = PhoneMetadata(id='AR', country_code=54, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}', possible_length=(10, 11), possible_length_local_only=(6, 7, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|920)|3(?:4(?:46|8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='1123456789', possible_length=(10,), possible_length_local_only=(6, 7, 8)),
mobile=PhoneNumberDesc(national_number_pattern='93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|920)|3(?:4(?:46|8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='91123456789', possible_length=(10, 11), possible_length_local_only=(6, 7, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|920)|3(?:4(?:46|8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|5[3-6]|8[3-68])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='1123456789', possible_length=(10,), possible_length_local_only=(6, 7, 8)),
mobile=PhoneNumberDesc(national_number_pattern='93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|920)|3(?:4(?:46|8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|5[3-6]|8[3-68]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='91123456789', possible_length=(10, 11), possible_length_local_only=(6, 7, 8)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{7,8}', example_number='8001234567', possible_length=(10, 11)),
premium_rate=PhoneNumberDesc(national_number_pattern='60[04579]\\d{7}', example_number='6001234567', possible_length=(10,)),
uan=PhoneNumberDesc(national_number_pattern='810\\d{7}', example_number='8101234567', possible_length=(10,)),
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_BW.py
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@

PHONE_METADATA_BW = PhoneMetadata(id='BW', country_code=267, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}', possible_length=(7, 8, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}', example_number='2401234', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))\\d{4}', example_number='2401234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:321|7[1-8]\\d)\\d{5}', example_number='71123456', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='(?:0800|800\\d)\\d{6}', example_number='0800012345', possible_length=(10,)),
premium_rate=PhoneNumberDesc(national_number_pattern='90\\d{5}', example_number='9012345', possible_length=(7,)),
voip=PhoneNumberDesc(national_number_pattern='79(?:1(?:[01]\\d|2[0-8])|2[0-7]\\d)\\d{3}', example_number='79101234', possible_length=(8,)),
voip=PhoneNumberDesc(national_number_pattern='79(?:1(?:[0-2]\\d|3[0-3])|2[0-7]\\d)\\d{3}', example_number='79101234', possible_length=(8,)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['90']),
NumberFormat(pattern='(\\d{3})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['[24-6]|3[15-9]']),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[37]']),
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CH.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
PHONE_METADATA_CH = PhoneMetadata(id='CH', country_code=41, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='8\\d{11}|[2-9]\\d{8}', possible_length=(9, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}', example_number='212345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='7[35-9]\\d{7}', example_number='781234567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6[89]|7[235-9])\\d{7}', example_number='781234567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='90[016]\\d{6}', example_number='900123456', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='84[0248]\\d{6}', example_number='840123456', possible_length=(9,)),
3 changes: 2 additions & 1 deletion python/phonenumbers/data/region_GA.py
Original file line number Diff line number Diff line change
@@ -5,8 +5,9 @@
general_desc=PhoneNumberDesc(national_number_pattern='(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}', possible_length=(7, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='[01]1\\d{6}', example_number='01441234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}', example_number='06031234', possible_length=(7, 8)),
national_prefix='0',
national_prefix_for_parsing='0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})',
national_prefix_transform_rule='\\1',
number_format=[NumberFormat(pattern='(\\d)(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[2-7]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['0']),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['11|[67]'], national_prefix_formatting_rule='0\\1')])
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[167]'], national_prefix_formatting_rule='0\\1')])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GE.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
PHONE_METADATA_GE = PhoneMetadata(id='GE', country_code=995, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[3-57]\\d\\d|800)\\d{6}', possible_length=(9,), possible_length_local_only=(6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}', example_number='322123456', possible_length=(9,), possible_length_local_only=(6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|(?:5(?:0(?:0(?:0\\d|11|22|33|44|5[05]|77|88|9[09])|111)|1(?:1(?:[03][01]|[124]\\d)|4\\d\\d)|(?:44|6[89])\\d\\d|5(?:[0157-9]\\d\\d|200)|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|58[89]|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}', example_number='555123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|111|77\\d)|1(?:1(?:[03][01]|[124]\\d)|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200)|6[89]\\d\\d|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}', example_number='555123456', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='70[67]\\d{6}', example_number='706123456', possible_length=(9,)),
no_international_dialling=PhoneNumberDesc(national_number_pattern='70[67]\\d{6}', possible_length=(9,)),
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GY.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
PHONE_METADATA_GY = PhoneMetadata(id='GY', country_code=592, international_prefix='001',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2-8]\\d{3}|9008)\\d{3}', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])\\d{4}', example_number='2201234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[01]\\d|2[1256]|3[12]|49))\\d{4}', example_number='6091234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[01]\\d|2[0-256]|3[0-2]|49))\\d{4}', example_number='6091234', possible_length=(7,)),
toll_free=PhoneNumberDesc(national_number_pattern='(?:289|8(?:00|6[28]|88|99))\\d{4}', example_number='2891234', possible_length=(7,)),
premium_rate=PhoneNumberDesc(national_number_pattern='9008\\d{3}', example_number='9008123', possible_length=(7,)),
voip=PhoneNumberDesc(national_number_pattern='515\\d{4}', example_number='5151234', possible_length=(7,)),
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_MU.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

PHONE_METADATA_MU = PhoneMetadata(id='MU', country_code=230, international_prefix='0(?:0|[24-7]0|3[03])',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}', possible_length=(7, 8, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-8])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}', example_number='54480123', possible_length=(7, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-8]|71)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}', example_number='54480123', possible_length=(7, 8)),
mobile=PhoneNumberDesc(national_number_pattern='5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-3]|3[013]))\\d{5}', example_number='52512345', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='802\\d{7}|80[0-2]\\d{4}', example_number='8001234', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='30\\d{5}', example_number='3012345', possible_length=(7,)),
6 changes: 3 additions & 3 deletions python/phonenumbers/data/region_SB.py
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_SB = PhoneMetadata(id='SB', country_code=677, international_prefix='0[01]',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[1-6]|[7-9]\\d\\d)\\d{4}', possible_length=(5, 7)),
general_desc=PhoneNumberDesc(national_number_pattern='[6-9]\\d{6}|[1-6]\\d{4}', possible_length=(5, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}', example_number='40123', possible_length=(5,)),
mobile=PhoneNumberDesc(national_number_pattern='48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}', example_number='7421234', possible_length=(5, 7)),
mobile=PhoneNumberDesc(national_number_pattern='48\\d{3}|(?:(?:6[89]|7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}', example_number='7421234', possible_length=(5, 7)),
toll_free=PhoneNumberDesc(national_number_pattern='1[38]\\d{3}', example_number='18123', possible_length=(5,)),
voip=PhoneNumberDesc(national_number_pattern='5[12]\\d{3}', example_number='51123', possible_length=(5,)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['7|8[4-9]|9(?:[1-8]|9[0-8])'])])
number_format=[NumberFormat(pattern='(\\d{2})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])'])])
Loading

0 comments on commit 76113d2

Please sign in to comment.