Skip to content

Commit

Permalink
Metadata Update (#60)
Browse files Browse the repository at this point in the history
* Updated metadata

* revert bumping version
  • Loading branch information
letsar authored Feb 23, 2024
1 parent e1bd3f2 commit 68a1944
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 131 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 8.2.0
- added VOIP support
- udpated metadata

## 8.1.3
- deprectate `getFormattedNsn` in favor of `formatNsn`
Expand Down
13 changes: 5 additions & 8 deletions lib/src/metadata/generated/metadata_formats_by_iso_code.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ const metadataFormatsByIsoCode = <IsoCode, PhoneMetadataFormats>{
PhoneMetadataFormat(
pattern: r"(\d{2})(\d{3})(\d{3,4})",
nationalPrefixFormattingRule: r"$NP$FG",
leadingDigits: ["[67]"],
leadingDigits: ["6|7[245]"],
format: r"$1 $2 $3",
intlFormat: null,
),
Expand All @@ -2106,7 +2106,7 @@ const metadataFormatsByIsoCode = <IsoCode, PhoneMetadataFormats>{
PhoneMetadataFormat(
pattern: r"(\d{2})(\d{3})(\d{3,4})",
nationalPrefixFormattingRule: r"$NP$FG",
leadingDigits: ["[2-5]"],
leadingDigits: ["[2-57]"],
format: r"$1 $2 $3",
intlFormat: null,
),
Expand Down Expand Up @@ -3213,10 +3213,7 @@ const metadataFormatsByIsoCode = <IsoCode, PhoneMetadataFormats>{
PhoneMetadataFormat(
pattern: r"(\d{4})(\d{5})",
nationalPrefixFormattingRule: r"$NP$FG",
leadingDigits: [
"5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)",
"5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"
],
leadingDigits: ["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],
format: r"$1-$2",
intlFormat: null,
),
Expand Down Expand Up @@ -3775,7 +3772,7 @@ const metadataFormatsByIsoCode = <IsoCode, PhoneMetadataFormats>{
PhoneMetadataFormat(
pattern: r"(\d{2})(\d{3})(\d{2,3})",
nationalPrefixFormattingRule: r"$NP$FG",
leadingDigits: ["[3-7]|8[2-9]"],
leadingDigits: ["[3-6]|7(?:0[0-689]|[1-79])|8[2-9]"],
format: r"$1 $2 $3",
intlFormat: null,
),
Expand Down Expand Up @@ -4731,7 +4728,7 @@ const metadataFormatsByIsoCode = <IsoCode, PhoneMetadataFormats>{
PhoneMetadataFormat(
pattern: r"(\d{4})(\d{4})",
nationalPrefixFormattingRule: null,
leadingDigits: ["[369]|8(?:0[1-8]|[1-9])"],
leadingDigits: ["[369]|8(?:0[1-9]|[1-9])"],
format: r"$1 $2",
intlFormat: null,
),
Expand Down
69 changes: 36 additions & 33 deletions lib/src/metadata/generated/metadata_patterns_by_iso_code.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,16 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"590\d{6}|(?:69|80|9\d)\d{7}",
mobile: r"69(?:0\d\d|1(?:2[2-9]|3[0-5]))\d{4}",
mobile:
r"69(?:0\d\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\d)|6(?:1[016-9]|5[0-4]|[67]\d))\d{4}",
fixedLine: r"590(?:2[7-9]|3[3-7]|5[12]|87)\d{4}",
voip: r"9(?:(?:395|76[018])\d|475[0-5])\d{4}",
voip: r"9(?:(?:39[5-7]|76[018])\d|475[0-5])\d{4}",
),
IsoCode.BM: PhoneMetadataPatterns(
nationalPrefixForParsing: r"([2-9]\d{6})$|1",
nationalPrefixTransformRule: r"441$1",
general: r"(?:441|[58]\d\d|900)\d{7}",
mobile: r"441909\d{4}|441(?:[2378]\d|5[0-39]|92)\d{5}",
mobile: r"441(?:[2378]\d|5[0-39]|9[02])\d{5}",
fixedLine: r"441(?:[46]\d\d|5(?:4\d|60|89))\d{4}",
voip: r"",
),
Expand Down Expand Up @@ -284,7 +285,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: r"242$1",
general: r"(?:242|[58]\d\d|900)\d{7}",
mobile:
r"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\d|[89]9))\d{4}",
r"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\d|3[0-4]|[89]9))\d{4}",
fixedLine:
r"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\d{4}",
voip: r"",
Expand Down Expand Up @@ -490,7 +491,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:[2-578]\d|60)\d{7}|9\d{8,11}",
mobile: r"7060\d{5}|(?:60[1-8]|7(?:0[2-5]|[2379]\d))\d{6}",
mobile: r"(?:60[1-8]\d|7(?:0(?:[2-5]\d|60)|190|[2379]\d\d))\d{5}",
fixedLine: r"(?:2\d|3[1257-9]|4[16-9]|5[13-9])\d{7}",
voip: r"9[17]0\d{6}",
),
Expand Down Expand Up @@ -576,7 +577,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"[5-8]\d{8}",
mobile:
r"(?:6(?:[0-79]\d|8[0-247-9])|7(?:[0167]\d|2[0-2]|5[01]|8[0-3]))\d{6}",
r"(?:6(?:[0-79]\d|8[0-247-9])|7(?:[0167]\d|2[0-4]|5[01]|8[0-3]))\d{6}",
fixedLine: r"528[89]\d{5}",
voip: r"(?:592(?:4[0-2]|93)|80[89]\d\d)\d{4}",
),
Expand Down Expand Up @@ -760,10 +761,11 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"590\d{6}|(?:69|80|9\d)\d{7}",
mobile: r"69(?:0\d\d|1(?:2[2-9]|3[0-5]))\d{4}",
mobile:
r"69(?:0\d\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\d)|6(?:1[016-9]|5[0-4]|[67]\d))\d{4}",
fixedLine:
r"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\d)\d{4}",
voip: r"9(?:(?:395|76[018])\d|475[0-5])\d{4}",
voip: r"9(?:(?:39[5-7]|76[018])\d|475[0-5])\d{4}",
),
IsoCode.GQ: PhoneMetadataPatterns(
nationalPrefixForParsing: null,
Expand Down Expand Up @@ -812,7 +814,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:[2-8]\d{3}|9008)\d{3}",
mobile: r"(?:510|6\d\d|7(?:[01]\d|2[156]|49))\d{4}",
mobile: r"(?:510|6\d\d|7(?:[01]\d|2[156]|31|49))\d{4}",
fixedLine:
r"(?: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}",
voip: r"515\d{4}",
Expand All @@ -822,7 +824,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"8[0-46-9]\d{6,7}|9\d{4,7}|(?:[2-7]|9\d{3})\d{7}",
mobile:
r"(?:4(?:44[05-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-6]|8[0-4])|848[0-35-9]|9(?:29[013-9]|39[01]|59[0-4]|899))\d{4}|(?:4(?:4[015-8]|6[02357-9])|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[129]|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\d))\d{5}",
r"(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|848[0-35-9]|9(?:29[013-9]|39[01]|59[0-4]|899))\d{4}|(?:4(?:4[0-35-8]|6[02357-9])|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[129]|84[0-29]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\d))\d{5}",
fixedLine:
r"(?:2(?:[13-9]\d|2[013-9])\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\d|8(?:4[0-8]|[59]\d|6[01]))|58(?:0[1-9]|1[2-9]))\d{4}",
voip: r"",
Expand Down Expand Up @@ -959,7 +961,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: r"([0-24-8]\d{5})$|0",
nationalPrefixTransformRule: r"1534$1",
general: r"1534\d{6}|(?:[3578]\d|90)\d{8}",
mobile: r"7(?:(?:(?:50|82)9|937)\d|7(?:00[378]|97[7-9]))\d{5}",
mobile: r"7(?:(?:(?:50|82)9|937)\d|7(?:00[378]|97\d))\d{5}",
fixedLine: r"1534[0-24-8]\d{5}",
voip: r"56\d{8}",
),
Expand Down Expand Up @@ -1070,7 +1072,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"18\d{5}|(?:[2569]\d|41)\d{6}",
mobile:
r"(?:41\d\d|5(?:(?:[05]\d|1[0-7]|6[56])\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\d)\d|1(?:00|11|66)|222|3[36]3|444|7(?:0[013-9]|[67]\d)|888|9(?:[069]\d|3[039]))|9(?:(?:0[09]|[4679]\d|8[057-9])\d|1(?:1[01]|99)|2(?:00|2\d)|3(?:00|3[03])|5(?:00|5\d)))\d{4}",
r"(?:41\d\d|5(?:(?:[05]\d|1[0-7]|6[56])\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\d)\d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]\d)|8[68]8|9(?:[069]\d|3[039]))|9(?:(?:[04679]\d|8[057-9])\d|1(?:1[01]|99)|2(?:00|2\d)|3(?:00|3[03])|5(?:00|5\d)))\d{4}",
fixedLine:
r"2(?:[23]\d\d|4(?:[1-35-9]\d|44)|5(?:0[034]|[2-46]\d|5[1-3]|7[1-7]))\d{4}",
voip: r"",
Expand Down Expand Up @@ -1126,7 +1128,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"[68]\d{8}|(?:[2378]\d|90)\d{5}",
mobile:
r"(?:6(?:(?:4[5-9]|5[0-469])\d|6(?:[0245]\d|[17]0|3[7-9]))\d|7(?:[37-9]\d|42|56))\d{4}",
r"(?:6(?:(?:4[5-9]|5[0-469])\d|6(?:[024-6]\d|[17]0|3[7-9]))\d|7(?:[37-9]\d|42|56))\d{4}",
fixedLine:
r"(?:2(?:01|1[27]|2[02]|3\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\d{4}",
voip: r"",
Expand Down Expand Up @@ -1199,7 +1201,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"[5-8]\d{8}",
mobile:
r"(?:6(?:[0-79]\d|8[0-247-9])|7(?:[0167]\d|2[0-2]|5[01]|8[0-3]))\d{6}",
r"(?:6(?:[0-79]\d|8[0-247-9])|7(?:[0167]\d|2[0-4]|5[01]|8[0-3]))\d{6}",
fixedLine:
r"5(?:2(?:[0-25-79]\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\d)\d{5}",
voip: r"(?:592(?:4[0-2]|93)|80[89]\d\d)\d{4}",
Expand Down Expand Up @@ -1233,9 +1235,10 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"590\d{6}|(?:69|80|9\d)\d{7}",
mobile: r"69(?:0\d\d|1(?:2[2-9]|3[0-5]))\d{4}",
mobile:
r"69(?:0\d\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\d)|6(?:1[016-9]|5[0-4]|[67]\d))\d{4}",
fixedLine: r"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\d{4}",
voip: r"9(?:(?:395|76[018])\d|475[0-5])\d{4}",
voip: r"9(?:(?:39[5-7]|76[018])\d|475[0-5])\d{4}",
),
IsoCode.MG: PhoneMetadataPatterns(
nationalPrefixForParsing: r"([24-9]\d{6})$|0",
Expand Down Expand Up @@ -1375,11 +1378,11 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: r"0(?:[12]|4[45])|1",
nationalPrefixTransformRule: null,
general:
r"1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\d{7}|(?:1(?:[01]\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\d)\d{8}",
r"1(?:(?:22|44|7[27]|87|99)[1-9]|65[0-689])\d{7}|(?:1(?:[01]\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-689]|8[1-69]|9[1-8])|[2-9]\d)\d{8}",
mobile:
r"657[12]\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\d|8[1-35-9]|9[2-689])|5(?:[56]\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\d|5[13-9]|8[1-69]|9[17])|8(?:1\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\d))\d{7}",
r"657[12]\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\d|8[1-35-9]|9[2-689])|5(?:[56]\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\d|5[13-9]|8[1-69]|9[17])|8(?:1\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\d))\d{7}",
fixedLine:
r"657[12]\d{6}|(?:2(?:0[01]|2\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\d|8[1-35-9]|9[2-689])|5(?:[56]\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\d|5[13-9]|8[1-69]|9[17])|8(?:1\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\d))\d{7}",
r"657[12]\d{6}|(?:2(?:0[01]|2\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\d|8[1-35-9]|9[2-689])|5(?:[56]\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\d|5[13-9]|8[1-69]|9[17])|8(?:1\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\d))\d{7}",
voip: r"",
),
IsoCode.MY: PhoneMetadataPatterns(
Expand Down Expand Up @@ -1440,7 +1443,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"2[0-24-9]\d{8}|[78]\d{10,13}|[7-9]\d{9}|[1-9]\d{7}|[124-7]\d{6}",
mobile:
r"(?:702[0-24-9]|819[01])\d{6}|(?:7(?:0[13-689]|[12]\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\d{7}",
r"(?:702[0-24-9]|819[01])\d{6}|(?:7(?:0[13-9]|[12]\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\d{7}",
fixedLine:
r"20(?:[1259]\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\d{6}|(?:(?:[1-356]\d|4[02-8]|8[2-9])\d|9(?:0[3-9]|[1-9]\d))\d{5}|7(?:0(?:[013-689]\d|2[0-24-9])\d{3,4}|[1-79]\d{6})|(?:[12]\d|4[147]|5[14579]|6[1578]|7[1-3578])\d{5}",
voip: r"",
Expand Down Expand Up @@ -1476,7 +1479,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:1\d|9)\d{9}|[1-9]\d{7}",
mobile: r"9(?:6[0-3]|7[024-6]|8[0-24-68])\d{7}",
mobile: r"9(?:00|6[0-3]|7[024-6]|8[0-24-68])\d{7}",
fixedLine:
r"(?:1[0-6]\d|99[02-6])\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\d{5}",
voip: r"",
Expand Down Expand Up @@ -1510,8 +1513,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:1505|[279]\d{3}|500)\d{4}|800\d{5,6}",
mobile:
r"1505\d{4}|(?:7(?:[1289]\d|6[89]|7[0-5])|9(?:0[1-9]|[1-9]\d))\d{5}",
mobile: r"(?:1505|90[1-9]\d)\d{4}|(?:7[126-9]|9[1-9])\d{6}",
fixedLine: r"2[1-6]\d{6}",
voip: r"",
),
Expand Down Expand Up @@ -1573,8 +1575,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:6|8\d\d)\d{7}|[1-9]\d{6}(?:\d{2})?|[26]\d{5}",
mobile:
r"21(?:1(?:[145]\d|3[1-5])|2\d\d)\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\d{7}",
mobile: r"21(?:1[013-5]|2\d)\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\d{7}",
fixedLine:
r"47\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\d{6}|1(?:[0-8]\d{5}|9\d{3}(?:\d{2})?))",
voip: r"39\d{7}",
Expand Down Expand Up @@ -1608,7 +1609,7 @@ const metadataPatternsByIsoCode = {
nationalPrefixTransformRule: null,
general: r"1693\d{5}|(?:[26-9]\d|30)\d{7}",
mobile:
r"6(?:[06]92(?:30|9\d)|[35]92(?:3[03]|9\d))\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\d\d|480))\d{5}",
r"6(?:[06]92(?:30|9\d)|[35]92(?:3[034]|9\d))\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\d\d|480))\d{5}",
fixedLine:
r"2(?:[12]\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\d{6}",
voip: r"30\d{7}",
Expand Down Expand Up @@ -1731,7 +1732,8 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:(?:1\d|8)\d\d|7000)\d{7}|[3689]\d{7}",
mobile: r"895[0-2]\d{4}|(?:8(?:0[1-8]|[1-8]\d|9[0-4])|9[0-8]\d)\d{5}",
mobile:
r"8(?:09|95)[0-2]\d{4}|(?:8(?:0[1-8]|[1-8]\d|9[0-4])|9[0-8]\d)\d{5}",
fixedLine: r"662[0-24-9]\d{4}|6(?:[0-578]\d|6[013-57-9]|9[0-35-9])\d{5}",
voip: r"(?:3[12]\d|666)\d{5}",
),
Expand Down Expand Up @@ -1831,7 +1833,7 @@ const metadataPatternsByIsoCode = {
IsoCode.SV: PhoneMetadataPatterns(
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"[267]\d{7}|[89]00\d{4}(?:\d{4})?",
general: r"[267]\d{7}|(?:80\d|900)\d{4}(?:\d{4})?",
mobile: r"[67]\d{7}",
fixedLine:
r"2(?:79(?:0[0347-9]|[1-9]\d)|89(?:0[024589]|[1-9]\d))\d{3}|2(?:[1-69]\d|[78][0-8])\d{5}",
Expand Down Expand Up @@ -1950,7 +1952,8 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"(?:0800|(?:[5-8]\d\d|999)\d)\d{3}|[2-8]\d{4}",
mobile: r"(?:55[4-6]|6(?:[09]\d|3[02]|8[15-9])|(?:7\d|8[46-9])\d|999)\d{4}",
mobile:
r"(?:5(?:4[0-5]|5[4-6])|6(?:[09]\d|3[02]|8[15-9])|(?:7\d|8[46-9])\d|999)\d{4}",
fixedLine: r"(?:2\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\d{3}",
voip: r"55[0-37-9]\d{4}",
),
Expand Down Expand Up @@ -2011,19 +2014,19 @@ const metadataPatternsByIsoCode = {
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"800\d{6}|(?:[29]0|[347]\d)\d{7}",
mobile: r"726[01]\d{5}|7(?:[015-8]\d|20|36|4[0-4]|9[89])\d{6}",
mobile: r"72(?:[48]0|6[01])\d{5}|7(?:[015-8]\d|20|36|4[0-4]|9[89])\d{6}",
fixedLine:
r"20(?:(?:240|30[67])\d|6(?:00[0-2]|30[0-4]))\d{3}|(?:20(?:[017]\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\d{3})\d{5}",
r"20(?:(?:240|30[67])\d|6(?:00[0-2]|30[0-4]))\d{3}|(?:20(?:[017]\d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]\d{3})\d{5}",
voip: r"",
),
IsoCode.US: PhoneMetadataPatterns(
nationalPrefixForParsing: null,
nationalPrefixTransformRule: null,
general: r"[2-9]\d{9}|3\d{6}",
mobile:
r"(?:5056(?:[0-35-9]\d|4[468])|7302[01]\d)\d{4}|(?:472[24]|505[2-57-9]|983[289])\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\d{6}",
r"(?:5056(?:[0-35-9]\d|4[468])|7302[0-3]\d)\d{4}|(?:472[24]|505[2-57-9]|7306|983[237-9])\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\d{6}",
fixedLine:
r"(?:5056(?:[0-35-9]\d|4[468])|7302[01]\d)\d{4}|(?:472[24]|505[2-57-9]|983[289])\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\d{6}",
r"(?:5056(?:[0-35-9]\d|4[468])|7302[0-3]\d)\d{4}|(?:472[24]|505[2-57-9]|7306|983[237-9])\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\d{6}",
voip: r"",
),
IsoCode.UY: PhoneMetadataPatterns(
Expand Down
Loading

0 comments on commit 68a1944

Please sign in to comment.