Skip to content

Commit

Permalink
Generated files for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Oct 14, 2022
1 parent 79bbe0f commit 679a137
Show file tree
Hide file tree
Showing 43 changed files with 82 additions and 71 deletions.
24 changes: 12 additions & 12 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@
'21272':{'en': 'Inwi'},
'21276':{'en': 'Maroc Telecom'},
'21277':{'en': u('M\u00e9ditel')},
'21278':{'en': u('M\u00e9ditel')},
'2135':{'en': 'Ooredoo'},
'2136':{'en': 'Mobilis'},
'2137':{'en': 'Djezzy'},
Expand Down Expand Up @@ -1220,6 +1221,7 @@
'25267':{'en': 'Nationlink'},
'25268':{'en': 'SomNet'},
'25269':{'en': 'Nationlink'},
'25270':{'en': 'Golis Telecom'},
'25271':{'en': 'Amtel'},
'25279':{'en': 'Somtel'},
'25280':{'en': 'Somali Networks'},
Expand Down Expand Up @@ -1299,6 +1301,7 @@
'25886':{'en': 'Movitel'},
'25887':{'en': 'Movitel'},
'25889':{'en': 'GMPCS'},
'26075':{'en': 'ZAMTEL'},
'26076':{'en': 'MTN'},
'26077':{'en': 'Airtel'},
'26095':{'en': 'ZAMTEL'},
Expand Down Expand Up @@ -1574,6 +1577,11 @@
'27675':{'en': 'Vodacom'},
'27676':{'en': 'Telkom Mobile'},
'27677':{'en': 'Telkom Mobile'},
'2768':{'en': 'Telkom Mobile'},
'27686':{'en': 'MTN'},
'27687':{'en': 'MTN'},
'27688':{'en': 'MTN'},
'27689':{'en': 'MTN'},
'2771':{'en': 'Vodacom'},
'27710':{'en': 'MTN'},
'27717':{'en': 'MTN'},
Expand Down Expand Up @@ -2284,6 +2292,7 @@
'346122':{'en': 'Lycamobile'},
'346124':{'en': 'Lycamobile'},
'346125':{'en': 'Lycamobile'},
'34613':{'en': 'Yoigo'},
'34615':{'en': 'Orange'},
'34616':{'en': 'Movistar'},
'34617':{'en': 'Vodafone'},
Expand Down Expand Up @@ -6290,9 +6299,9 @@
'474886':{'en': 'telia'},
'474888':{'en': 'telia'},
'474889':{'en': 'telia'},
'474890':{'en': 'telenor norge'},
'474891':{'en': 'telenor norge'},
'474892':{'en': 'telenor norge'},
'474890':{'en': 'ice norge'},
'474891':{'en': 'ice norge'},
'474892':{'en': 'ice norge'},
'474893':{'en': 'telia'},
'474894':{'en': 'telenor norge'},
'474895':{'en': 'telia'},
Expand Down Expand Up @@ -10010,13 +10019,4 @@
'553199912':{'en': 'Telemig Celular'},
'553199913':{'en': 'Telemig Celular'},
'553199914':{'en': 'Telemig Celular'},
'553199915':{'en': 'Telemig Celular'},
'553199916':{'en': 'Telemig Celular'},
'553199917':{'en': 'Telemig Celular'},
'553199918':{'en': 'Telemig Celular'},
'553199919':{'en': 'Telemig Celular'},
'553199921':{'en': 'Telemig Celular'},
'553199922':{'en': 'Telemig Celular'},
'553199923':{'en': 'Telemig Celular'},
'553199924':{'en': 'Telemig Celular'},
}
18 changes: 9 additions & 9 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
# limitations under the License.

data = {
'553199915':{'en': 'Telemig Celular'},
'553199916':{'en': 'Telemig Celular'},
'553199917':{'en': 'Telemig Celular'},
'553199918':{'en': 'Telemig Celular'},
'553199919':{'en': 'Telemig Celular'},
'553199921':{'en': 'Telemig Celular'},
'553199922':{'en': 'Telemig Celular'},
'553199923':{'en': 'Telemig Celular'},
'553199924':{'en': 'Telemig Celular'},
'553199925':{'en': 'Telemig Celular'},
'553199926':{'en': 'Telemig Celular'},
'553199927':{'en': 'Telemig Celular'},
Expand Down Expand Up @@ -10010,13 +10019,4 @@
'573148':{'en': 'Claro'},
'57315':{'en': 'Movistar'},
'57316':{'en': 'Movistar'},
'57317':{'en': 'Movistar'},
'57318':{'en': 'Movistar'},
'573192':{'en': 'Movistar'},
'573193':{'en': 'Movistar'},
'573194':{'en': 'Movistar'},
'573195':{'en': 'Movistar'},
'573196':{'en': 'Movistar'},
'573197':{'en': 'Movistar'},
'573198':{'en': 'Movistar'},
}
26 changes: 18 additions & 8 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
# limitations under the License.

data = {
'57317':{'en': 'Movistar'},
'57318':{'en': 'Movistar'},
'573192':{'en': 'Movistar'},
'573193':{'en': 'Movistar'},
'573194':{'en': 'Movistar'},
'573195':{'en': 'Movistar'},
'573196':{'en': 'Movistar'},
'573197':{'en': 'Movistar'},
'573198':{'en': 'Movistar'},
'573199':{'en': 'Movistar'},
'573202':{'en': 'Claro'},
'573203':{'en': 'Claro'},
Expand Down Expand Up @@ -305,6 +314,9 @@
'59469419':{'en': 'SFR'},
'5946942':{'en': 'Orange'},
'5946943':{'en': 'Orange'},
'59469435':{'en': 'Free Caraibe'},
'59469436':{'en': 'Free Caraibe'},
'59469437':{'en': 'Free Caraibe'},
'5946944':{'en': 'Orange'},
'59469446':{'en': 'SFR'},
'59469447':{'en': 'SFR'},
Expand Down Expand Up @@ -992,6 +1004,8 @@
'658051':{'en': 'M1'},
'658052':{'en': 'M1'},
'658053':{'en': 'Simba'},
'658054':{'en': 'SingTel'},
'658055':{'en': 'Geenet'},
'658056':{'en': 'Simba'},
'658057':{'en': 'Simba'},
'6581':{'en': 'StarHub'},
Expand Down Expand Up @@ -8009,14 +8023,7 @@
'974399':{'en': 'ooredoo'},
'97450':{'en': 'ooredoo'},
'97451':{'en': 'ooredoo'},
'974520':{'en': 'ooredoo'},
'974521':{'en': 'ooredoo'},
'974522':{'en': 'ooredoo'},
'974523':{'en': 'ooredoo'},
'974524':{'en': 'ooredoo'},
'974525':{'en': 'ooredoo'},
'974526':{'en': 'ooredoo'},
'974527':{'en': 'ooredoo'},
'97452':{'en': 'ooredoo'},
'97455':{'en': 'ooredoo'},
'974599':{'en': 'ooredoo'},
'974600':{'en': 'ooredoo'},
Expand All @@ -8027,6 +8034,9 @@
'974721':{'en': 'Vodafone'},
'974722':{'en': 'Vodafone'},
'974723':{'en': 'Vodafone'},
'974724':{'en': 'Vodafone'},
'974725':{'en': 'Vodafone'},
'974726':{'en': 'Vodafone'},
'97474':{'en': 'Vodafone'},
'97477':{'en': 'Vodafone'},
'9751':{'en': 'B-Mobile of Bhutan Telecom'},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_BJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_BJ = PhoneMetadata(id='BJ', country_code=229, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[25689]\\d|40)\\d{6}', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:02|1[037]|2[45]|3[68])\\d{5}', example_number='20211234', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}', example_number='20211234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:40|5[1-9]|6\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
voip=PhoneNumberDesc(national_number_pattern='857[58]\\d{4}', example_number='85751234', possible_length=(8,)),
uan=PhoneNumberDesc(national_number_pattern='81\\d{6}', example_number='81123456', possible_length=(8,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_EH.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_EH = PhoneMetadata(id='EH', country_code=212, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[5-8]\\d{8}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='528[89]\\d{5}', example_number='528812345', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}', example_number='650123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}', example_number='650123456', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', example_number='801234567', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='89\\d{7}', example_number='891234567', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='592(?:4[0-2]|93)\\d{4}', example_number='592401234', possible_length=(9,)),
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_GB.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

PHONE_METADATA_GB = PhoneMetadata(id='GB', country_code=44, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}', possible_length=(7, 9, 10), possible_length_local_only=(4, 5, 6, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}', example_number='1212345678', possible_length=(9, 10), possible_length_local_only=(4, 5, 6, 7, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[013579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-246-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}', example_number='1212345678', possible_length=(9, 10), possible_length_local_only=(4, 5, 6, 7, 8)),
mobile=PhoneNumberDesc(national_number_pattern='7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}', example_number='7400123456', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[08]\\d{7}|800\\d{6}|8001111', example_number='8001234567', possible_length=(7, 9, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d', example_number='9012345678', possible_length=(7, 10)),
personal_number=PhoneNumberDesc(national_number_pattern='70\\d{8}', example_number='7012345678', possible_length=(10,)),
voip=PhoneNumberDesc(national_number_pattern='56\\d{8}', example_number='5612345678', possible_length=(10,)),
pager=PhoneNumberDesc(national_number_pattern='76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', example_number='7640123456', possible_length=(10,)),
pager=PhoneNumberDesc(national_number_pattern='76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', example_number='7640123456', possible_length=(10,)),
uan=PhoneNumberDesc(national_number_pattern='(?:3[0347]|55)\\d{8}', example_number='5512345678', possible_length=(10,)),
national_prefix='0',
preferred_extn_prefix=' x',
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_GF.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

PHONE_METADATA_GF = PhoneMetadata(id='GF', country_code=594, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[56]94|80\\d|976)\\d{6}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='594(?:[023]\\d|1[0-2]|4[03-9]|5[6-9]|6[0-3]|80|9[0-8])\\d{4}', example_number='594101234', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='694(?:[0-249]\\d|3[0-48])\\d{4}', example_number='694201234', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='594(?:[0239]\\d|1[0-2]|4[03-9]|5[6-9]|6[0-3]|80)\\d{4}', example_number='594101234', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='694(?:[0-249]\\d|3[0-8])\\d{4}', example_number='694201234', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='800012345', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='976\\d{6}', example_number='976012345', possible_length=(9,)),
national_prefix='0',
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GG.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
premium_rate=PhoneNumberDesc(national_number_pattern='(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d', example_number='9012345678', possible_length=(7, 10)),
personal_number=PhoneNumberDesc(national_number_pattern='70\\d{8}', example_number='7012345678', possible_length=(10,)),
voip=PhoneNumberDesc(national_number_pattern='56\\d{8}', example_number='5612345678', possible_length=(10,)),
pager=PhoneNumberDesc(national_number_pattern='76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', example_number='7640123456', possible_length=(10,)),
pager=PhoneNumberDesc(national_number_pattern='76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', example_number='7640123456', possible_length=(10,)),
uan=PhoneNumberDesc(national_number_pattern='(?:3[0347]|55)\\d{8}', example_number='5512345678', possible_length=(10,)),
national_prefix='0',
national_prefix_for_parsing='0|([25-9]\\d{5})$',
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_JE.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
premium_rate=PhoneNumberDesc(national_number_pattern='(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}', example_number='9018105678', possible_length=(10,)),
personal_number=PhoneNumberDesc(national_number_pattern='701511\\d{4}', example_number='7015115678', possible_length=(10,)),
voip=PhoneNumberDesc(national_number_pattern='56\\d{8}', example_number='5612345678', possible_length=(10,)),
pager=PhoneNumberDesc(national_number_pattern='76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', example_number='7640123456', possible_length=(10,)),
pager=PhoneNumberDesc(national_number_pattern='76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', example_number='7640123456', possible_length=(10,)),
uan=PhoneNumberDesc(national_number_pattern='(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}', example_number='5512345678', possible_length=(10,)),
national_prefix='0',
national_prefix_for_parsing='0|([0-24-8]\\d{5})$',
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_MA.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_MA = PhoneMetadata(id='MA', country_code=212, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[5-8]\\d{8}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='5(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}', example_number='520123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}', example_number='650123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}', example_number='650123456', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', example_number='801234567', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='89\\d{7}', example_number='891234567', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='592(?:4[0-2]|93)\\d{4}', example_number='592401234', possible_length=(9,)),
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_MW.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_MW = PhoneMetadata(id='MW', country_code=265, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}', possible_length=(7, 9)),
general_desc=PhoneNumberDesc(national_number_pattern='(?:[1289]\\d|31|77)\\d{7}|1\\d{6}', possible_length=(7, 9)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1[2-9]|2[12]\\d\\d)\\d{5}', example_number='1234567', possible_length=(7, 9)),
mobile=PhoneNumberDesc(national_number_pattern='111\\d{6}|(?:31|77|88|9[89])\\d{7}', example_number='991234567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='111\\d{6}|(?:31|77|[89][89])\\d{7}', example_number='991234567', possible_length=(9,)),
national_prefix='0',
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(\\d)(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['1[2-9]'], national_prefix_formatting_rule='0\\1'),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_SG.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_SG = PhoneMetadata(id='SG', country_code=65, international_prefix='0[0-3]\\d',
general_desc=PhoneNumberDesc(national_number_pattern='(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}', possible_length=(8, 10, 11)),
fixed_line=PhoneNumberDesc(national_number_pattern='662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}', example_number='61234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='8(?:05[0-367]|95[0-2])\\d{4}|(?:8(?:0[1-4]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}', example_number='81234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='8(?:05[0-7]|95[0-2])\\d{4}|(?:8(?:0[1-4]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}', example_number='81234567', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='(?:18|8)00\\d{7}', example_number='18001234567', possible_length=(10, 11)),
premium_rate=PhoneNumberDesc(national_number_pattern='1900\\d{7}', example_number='19001234567', possible_length=(11,)),
voip=PhoneNumberDesc(national_number_pattern='(?:3[12]\\d|666)\\d{5}', example_number='31234567', possible_length=(8,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_SN.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_SN = PhoneMetadata(id='SN', country_code=221, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[378]\\d|93)\\d{7}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}', example_number='301012345', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='75(?:01|[38]3)\\d{5}|7(?:[06-8]\\d|21|5[4-7]|90)\\d{6}', example_number='701234567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='7(?:(?:[06-8]\\d|21|90)\\d|5(?:01|[19]0|25|[38]3|[4-7]\\d))\\d{5}', example_number='701234567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='88[4689]\\d{6}', example_number='884123456', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='81[02468]\\d{6}', example_number='810123456', possible_length=(9,)),
Expand Down
Loading

0 comments on commit 679a137

Please sign in to comment.