Skip to content

Commit

Permalink
Metadata updates for release 1.1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
superakabo committed Oct 1, 2024
1 parent da9e525 commit 2270d26
Show file tree
Hide file tree
Showing 34 changed files with 178 additions and 97 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.24
- Updated phone metadata for region code(s): GE, HK, MG, MM, NO, SJ, UA, UG
- Updated short number metadata for region code(s): NO, SJ
- Updated geocoding data for country calling code(s): 95 (en), 261 (en), 380 (en, uk)
- Updated carrier data for country calling code(s): 256 (en), 380 (en), 852 (en, zh), 995 (en)

## 1.1.23
- Updated phone metadata for region code(s): CO, HK, PA, PE, SG, SN, UZ
- Updated short number metadata for region code(s): UY
Expand Down
1 change: 1 addition & 0 deletions lib/generated/metadata/carrier/256_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Map<int, String> get256_en() {
256720: "Smile",
256724: "Hamilton Telecom",
256726: "Tangerine",
256727: "Tangerine",
256728: "Talkio"
};
}
1 change: 1 addition & 0 deletions lib/generated/metadata/carrier/380_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Map<int, String> get380_en() {
38073: "lifecell",
38075: "Vodafone",
38077: "Kyivstar",
38079: "J&Y",
38091: "TriMob",
38092: "PEOPLEnet",
38093: "lifecell",
Expand Down
2 changes: 2 additions & 0 deletions lib/generated/metadata/carrier/852_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Map<int, String> get852_en() {
852469: "China Mobile",
852470: "Hutchison Telecom",
852474: "China Mobile",
852475: "Hutchison Telecom",
852510: "China Mobile",
852511: "HKT",
852512: "China Mobile",
Expand Down Expand Up @@ -180,6 +181,7 @@ Map<int, String> get852_en() {
852701: "China Mobile",
852702: "Hutchison Telecom",
852703: "Hutchison Telecom",
852704: "Hutchison Telecom",
852708: "HKT",
852709: "Hutchison Telecom",
852840: "China Mobile",
Expand Down
2 changes: 2 additions & 0 deletions lib/generated/metadata/carrier/852_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Map<int, String> get852_zh() {
852469: "中国移动",
852470: "和記電話有限公司",
852474: "中国移动",
852475: "和記電話有限公司",
852510: "中国移动",
852511: "香港移动通讯",
852512: "中国移动",
Expand Down Expand Up @@ -157,6 +158,7 @@ Map<int, String> get852_zh() {
852701: "中国移动",
852702: "和記電話有限公司",
852703: "和記電話有限公司",
852704: "和記電話有限公司",
852708: "香港移动通讯",
852709: "和記電話有限公司",
852840: "中国移动",
Expand Down
7 changes: 6 additions & 1 deletion lib/generated/metadata/carrier/995_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Map<int, String> get995_en() {
9955112: "MagtiCom",
9955113: "MagtiCom",
9955114: "MagtiCom",
9955115: "Silknet",
9955117: "MagtiCom",
9955225: "Silknet",
9955333: "MagtiCom",
Expand All @@ -78,6 +77,12 @@ Map<int, String> get995_en() {
99551100: "MagtiCom",
99551101: "Silknet",
99551107: "Silknet",
99551151: "Silknet",
99551152: "MagtiCom",
99551153: "MagtiCom",
99551154: "MagtiCom",
99551155: "MagtiCom",
99551156: "MagtiCom",
99552222: "MagtiCom",
99552225: "Silknet",
99554444: "MagtiCom",
Expand Down
1 change: 1 addition & 0 deletions lib/generated/metadata/geocoding/261_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Map<int, String> get261_en() {
2612069: "Maintirano",
2612073: "Farafangana",
2612075: "Fianarantsoa",
2612076: "Antananarivo",
2612082: "Antsiranana",
2612086: "Nosy Be",
2612088: "Sambava",
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/geocoding/380_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Map<int, String> get380_en() {
3804741: "Shpola, Cherkasy",
3804742: "Katerinopil, Cherkasy",
3804744: "Uman, Cherkasy",
3804745: "Khrystynivka, Cherkasy",
3804745: "Monastyrysche, Cherkasy",
3804746: "Monastyrysche, Cherkasy",
3804747: "Zhashkiv, Cherkasy",
3804748: "Mankivka, Cherkasy",
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/geocoding/380_uk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Map<int, String> get380_uk() {
3804741: "Шпола, Черкаси",
3804742: "Катеринопіль, Черкаси",
3804744: "Умань, Черкаси",
3804745: "Христинівка, Черкаси",
3804745: "Монастирище, Черкаси",
3804746: "Монастирище, Черкаси",
3804747: "Жашків, Черкаси",
3804748: "Маньківка, Черкаси",
Expand Down
1 change: 1 addition & 0 deletions lib/generated/metadata/geocoding/95_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/// Geocoding JSON data for 95_en
Map<int, String> get95_en() {
return {
9511: "Yangon",
95256: "Amarapura",
951422: "Yangon",
951423: "Yangon",
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/phone_number/GE.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Map<String, Object?> getGE() {
},
"mobile": {
"nationalNumberPattern":
"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|22[02]|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}",
"5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|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}|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|111|22[02]|77\\d)|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|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}",
"exampleNumber": "555123456",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/phone_number/HK.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Map<String, Object?> getHK() {
},
"mobile": {
"nationalNumberPattern":
"(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4])|74[0-2])|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[01]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[02357-9]|70)|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-39]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",
"(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4])|74[0-2])|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[01]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[02357-9]|7[05])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-49]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",
"exampleNumber": "51234567",
"possibleLength": [8],
"possibleLengthLocalOnly": [-1]
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/phone_number/MG.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Map<String, Object?> getMG() {
},
"fixedLine": {
"nationalNumberPattern":
"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",
"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[245])\\d{5}",
"exampleNumber": "202123456",
"possibleLength": [9],
"possibleLengthLocalOnly": [7]
Expand Down
10 changes: 5 additions & 5 deletions lib/generated/metadata/phone_number/MM.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Map<String, Object?> getMM() {
},
"fixedLine": {
"nationalNumberPattern":
"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[29]|62|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|[26]2|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:(?:3\\d|8[01459])\\d|4[67]0)))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",
"(?:1(?:(?:12|[28]\\d|3[56]|7[3-6]|9[0-6])\\d|4(?:2[29]|62|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|[26]2|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5(?:2\\d|470))|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:3\\d\\d|4[67]0|8(?:[01459]\\d|8))))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|(?:[35]2|64)\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",
"exampleNumber": "1234567",
"possibleLength": [6, 7, 8, 9],
"possibleLengthLocalOnly": [5]
Expand Down Expand Up @@ -67,15 +67,15 @@ Map<String, Object?> getMM() {
"pattern": "(\\d{2})(\\d{2})(\\d{3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": [
"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"
"4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"
],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[12]"],
"leadingDigitsPattern": ["[12]|452|678|86", "[12]|452|6788|86"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
Expand Down Expand Up @@ -134,15 +134,15 @@ Map<String, Object?> getMM() {
"pattern": "(\\d{2})(\\d{2})(\\d{3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": [
"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"
"4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"
],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[12]"],
"leadingDigitsPattern": ["[12]|452|678|86", "[12]|452|6788|86"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/phone_number/NO.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Map<String, Object?> getNO() {
},
"uan": {
"nationalNumberPattern":
"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",
"(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",
"exampleNumber": "02000",
"possibleLength": [5, 8],
"possibleLengthLocalOnly": [-1]
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/phone_number/SJ.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Map<String, Object?> getSJ() {
},
"uan": {
"nationalNumberPattern":
"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",
"(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",
"exampleNumber": "02000",
"possibleLength": [5, 8],
"possibleLengthLocalOnly": [-1]
Expand Down
3 changes: 2 additions & 1 deletion lib/generated/metadata/phone_number/UA.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Map<String, Object?> getUA() {
"possibleLengthLocalOnly": [5, 6, 7]
},
"mobile": {
"nationalNumberPattern": "(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}",
"nationalNumberPattern":
"790\\d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}",
"exampleNumber": "501234567",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/metadata/phone_number/UG.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Map<String, Object?> getUG() {
},
"mobile": {
"nationalNumberPattern":
"72(?:[48]0|6[01])\\d{5}|7(?:[015-8]\\d|20|36|4[0-5]|9[89])\\d{6}",
"72[48]0\\d{5}|7(?:[015-8]\\d|2[067]|36|4[0-5]|9[89])\\d{6}",
"exampleNumber": "712345678",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
Expand Down
12 changes: 7 additions & 5 deletions lib/generated/metadata/short_number/NO.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
Map<String, Object?> getNO() {
return {
"generalDesc": {
"nationalNumberPattern": "1\\d\\d(?:\\d(?:\\d{2})?)?",
"possibleLength": [3, 4, 6]
"nationalNumberPattern": "[01]\\d{2,5}",
"possibleLength": [3, 4, 5, 6]
},
"fixedLine": {
"possibleLength": [-1],
Expand Down Expand Up @@ -67,9 +67,9 @@ Map<String, Object?> getNO() {
},
"shortCode": {
"nationalNumberPattern":
"1(?:1(?:[0239]|61(?:1[17]|23))|2[048]|4(?:12|[59])|7[57]|8[5-9]\\d|90)",
"04\\d{3}|1(?:1(?:[0239]|61(?:1[17]|23))|2[048]|4(?:12|[59])|7[57]|8[5-9]\\d|90)",
"exampleNumber": "110",
"possibleLength": [3, 4, 6],
"possibleLength": [3, 4, 5, 6],
"possibleLengthLocalOnly": [-1]
},
"standardRate": {
Expand All @@ -82,7 +82,9 @@ Map<String, Object?> getNO() {
},
"mobileNumberPortableRegion": false,
"smsServices": {
"possibleLength": [-1],
"nationalNumberPattern": "04\\d{3}",
"exampleNumber": "04000",
"possibleLength": [5],
"possibleLengthLocalOnly": [-1]
}
};
Expand Down
12 changes: 7 additions & 5 deletions lib/generated/metadata/short_number/SJ.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
Map<String, Object?> getSJ() {
return {
"generalDesc": {
"nationalNumberPattern": "1\\d\\d",
"possibleLength": [3]
"nationalNumberPattern": "[01]\\d\\d(?:\\d{2})?",
"possibleLength": [3, 5]
},
"fixedLine": {
"possibleLength": [-1],
Expand Down Expand Up @@ -66,9 +66,9 @@ Map<String, Object?> getSJ() {
"possibleLengthLocalOnly": [-1]
},
"shortCode": {
"nationalNumberPattern": "11[023]",
"nationalNumberPattern": "04\\d{3}|11[023]",
"exampleNumber": "110",
"possibleLength": [3],
"possibleLength": [3, 5],
"possibleLengthLocalOnly": [-1]
},
"standardRate": {
Expand All @@ -81,7 +81,9 @@ Map<String, Object?> getSJ() {
},
"mobileNumberPortableRegion": false,
"smsServices": {
"possibleLength": [-1],
"nationalNumberPattern": "04\\d{3}",
"exampleNumber": "04000",
"possibleLength": [5],
"possibleLengthLocalOnly": [-1]
}
};
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dlibphonenumber
description: This is a Dart port of Google's libphonenumber library, Google's library for parsing, formatting, and validating international phone numbers.
version: 1.1.23
version: 1.1.24
repository: https://github.com/superakabo/dlibphonenumber
issue_tracker: https://github.com/superakabo/dlibphonenumber/issues
topics:
Expand Down
Loading

0 comments on commit 2270d26

Please sign in to comment.