Skip to content

Commit

Permalink
Merge metadata changes from upstream 8.13.27
Browse files Browse the repository at this point in the history
Includes changes in resources/ up to and including
upstream commit 7b3c8c91645e:
  "[maven-release-plugin] prepare release v8.13.27"
  • Loading branch information
daviddrysdale committed Dec 20, 2023
1 parent ed4c859 commit 1e6384e
Show file tree
Hide file tree
Showing 18 changed files with 144 additions and 107 deletions.
128 changes: 83 additions & 45 deletions resources/PhoneNumberMetadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1449,9 +1449,12 @@
)
)[46]\d{5}|
(?:
29(?:
54|
66
2(?:
657|
9(?:
54|
66
)
)|
3(?:
7(?:
Expand Down Expand Up @@ -1489,11 +1492,11 @@
02|
23
)|
657|
920
)|
3(?:
4(?:
46|
8[27]|
92
)|
Expand All @@ -1517,8 +1520,8 @@
3(?:
329|
4(?:
[47]6|
62|
76|
89
)|
564
Expand Down Expand Up @@ -1723,9 +1726,12 @@
)
)\d{5}|
9(?:
29(?:
54|
66
2(?:
657|
9(?:
54|
66
)
)|
3(?:
7(?:
Expand Down Expand Up @@ -1763,11 +1769,11 @@
02|
23
)|
657|
920
)|
3(?:
4(?:
46|
8[27]|
92
)|
Expand All @@ -1791,8 +1797,8 @@
3(?:
329|
4(?:
[47]6|
62|
76|
89
)|
564
Expand Down Expand Up @@ -3961,7 +3967,7 @@
6(?:
3[03-9]|
[69]\d|
7[0-6]
7[0-689]
)
)
)\d{4}
Expand Down Expand Up @@ -8278,16 +8284,22 @@
<leadingDigits>18[68]</leadingDigits>
<format>$1 $2</format>
</numberFormat>
<!-- Mobile format for 15x mobile numbers. -->
<numberFormat pattern="(\d{4})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>15[1279]</leadingDigits>
<format>$1 $2</format>
</numberFormat>
<!-- Some mobile numbers (carrier services etc..) have a 6 digit NSN and need to be formatted
with 5 leading digits (as opposed to the 4.7 format).
These are all in the ranges 150, 155, 156 and 158. -->
<numberFormat pattern="(\d{5})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>15[0568]</leadingDigits>
<format>$1 $2</format>
</numberFormat>
<!-- Mobile format for 15x mobile numbers. -->
<numberFormat pattern="(\d{4})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>15[1279]</leadingDigits>
<leadingDigits>15[03568]</leadingDigits>
<leadingDigits>
15(?:
[0568]|
31
)
</leadingDigits>
<format>$1 $2</format>
</numberFormat>
<!-- Various UAN numbers. -->
Expand Down Expand Up @@ -8448,7 +8460,10 @@
<possibleLengths national="10,11"/>
<exampleNumber>15123456789</exampleNumber>
<nationalNumberPattern>
15[0-25-9]\d{8}|
15(?:
[0-25-9]\d\d|
310
)\d{6}|
1(?:
6[023]|
7\d
Expand Down Expand Up @@ -9176,7 +9191,10 @@
)|
2(?:
0(?:
000|
0(?:
00|
4\d
)|
(?:
19|
[2-7]\d
Expand Down Expand Up @@ -9730,17 +9748,10 @@
<format>$1</format>
<intlFormat>NA</intlFormat>
</numberFormat>
<!-- General format for 1-digit prefix (5-10 digit numbers). -->
<numberFormat pattern="(\d)(\d{4,9})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>
[2568][1-8]|
3(?:
0[1-9]|
[1-9]
)|
9
</leadingDigits>
<format>$1 $2</format>
<!-- Format for 5 digit UAN numbers. -->
<numberFormat pattern="(\d{5})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>20[2-59]</leadingDigits>
<format>$1</format>
</numberFormat>
<!-- Format for 6 digit short codes. -->
<numberFormat pattern="(\d{6})">
Expand All @@ -9751,16 +9762,20 @@
<!-- General format for 3-digit prefix (6-10 digit numbers). -->
<numberFormat pattern="(\d{3})(\d{3,7})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>
[12]00|
[368]|
(?:
[1-3]0|
[68]
)0|
70[07-9]
</leadingDigits>
<format>$1 $2</format>
</numberFormat>
<!-- General format for 2-digit prefix (6-10 digit numbers). -->
<numberFormat pattern="(\d{2})(\d{4,8})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>
[1245]|
[14]|
2[09]|
50|
7[135]
</leadingDigits>
<format>$1 $2</format>
Expand All @@ -9769,6 +9784,21 @@
<leadingDigits>7</leadingDigits>
<format>$1 $2</format>
</numberFormat>
<!-- General format for 1-digit prefix (5-10 digit numbers). -->
<numberFormat pattern="(\d)(\d{4,9})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>
(?:
1[3-79]|
[2568]
)[1-8]|
3(?:
0[1-9]|
[1-9]
)|
9
</leadingDigits>
<format>$1 $2</format>
</numberFormat>
</availableFormats>
<generalDesc>
<nationalNumberPattern>
Expand Down Expand Up @@ -9821,7 +9851,11 @@
<nationalNumberPattern>
(?:
1[3-79][1-8]|
[235689][1-8]\d
[23568][1-8]\d|
9(?:
00|
[1-8]\d
)
)\d{2,6}
</nationalNumberPattern>
</fixedLine>
Expand Down Expand Up @@ -11034,7 +11068,7 @@
5[05]|
77|
88|
99
9[09]
)|
1(?:
1(?:
Expand Down Expand Up @@ -11079,7 +11113,7 @@
)\d{4}|
5(?:
0(?:
070|
0[17]0|
505
)|
1(?:
Expand Down Expand Up @@ -12411,7 +12445,7 @@
)\d{4}|
(?:
4(?:
4[015]|
4[0156]|
6[02357-9]
)|
5(?:
Expand All @@ -12425,6 +12459,7 @@
[268][0-57-9]|
7[0-79]
)|
709|
84[09]|
9(?:
0[1-9]|
Expand Down Expand Up @@ -24558,7 +24593,7 @@
<leadingDigits>
9(?:
[5-79]|
8[1-6]
8[1-7]
)
</leadingDigits>
<format>$1 $2</format>
Expand Down Expand Up @@ -24640,7 +24675,8 @@
9(?:
51|
6[129]|
[78][1-6]|
7[1-6]|
8[1-7]|
9[1-5]
)\d{6}
</nationalNumberPattern>
Expand Down Expand Up @@ -24862,8 +24898,7 @@
<generalDesc>
<nationalNumberPattern>
(?:
[2378]\d|
62|
[236-8]\d|
90
)\d{7}|
[23]\d{5}
Expand Down Expand Up @@ -24899,7 +24934,10 @@
<nationalNumberPattern>
7020\d{5}|
(?:
62\d|
6(?:
2\d|
40
)|
7(?:
0[013-9]|
1[0-3]|
Expand Down Expand Up @@ -25957,7 +25995,7 @@
<exampleNumber>81234567</exampleNumber>
<nationalNumberPattern>
8(?:
08[013]|
08[013-9]|
95[0-2]
)\d{4}|
(?:
Expand Down Expand Up @@ -28835,7 +28873,7 @@
73020\d
)\d{4}|
(?:
4722|
472[24]|
505[2-57-9]|
983[289]
)\d{6}|
Expand Down Expand Up @@ -28939,7 +28977,7 @@
73020\d
)\d{4}|
(?:
4722|
472[24]|
505[2-57-9]|
983[289]
)\d{6}|
Expand Down
4 changes: 0 additions & 4 deletions resources/carrier/en/1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,6 @@
180999|Tricom
186825|Digicel
186826|Digicel
1868266|bmobile
1868267|bmobile
1868268|bmobile
1868269|bmobile
186827|bmobile
186828|bmobile
186829|bmobile
Expand Down
19 changes: 1 addition & 18 deletions resources/carrier/en/358.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# Copyright (C) 2013 The Libphonenumber Authors

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# https://www.viestintavirasto.fi/en/internettelephone/numberingoftelecommunicationsnetworks/mobilenetworks/mobilenetworkareacodes.html

# Sonera and Tele Finland carriers are now Telia.

35840|Telia
35841|DNA
35842|Telia
Expand All @@ -25,6 +7,7 @@
3584323|Top Connect OU
3584324|Nord Connect SIA
3584325|NETTIA
3584326|Lancelot
358436|DNA
358438|DNA
35844|DNA
Expand Down
3 changes: 2 additions & 1 deletion resources/carrier/en/40.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

406|Vodafone
4062|Vodafone
4064|Orange
407000|Enigma-System
407013|Lycamobile
407014|Lycamobile
Expand Down
5 changes: 4 additions & 1 deletion resources/carrier/en/49.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# O2 is run by Telefónica (the name listed in the ITU doc). The ITU doc also
# lists Telekom Deutschland for T-Mobile, but these are the same company.

4915019|Tismi BV
4915020|Interactive digital media
4915050|NAKA AG
4915080|Easy World
Expand All @@ -26,7 +27,9 @@
491525|Vodafone
491526|Vodafone
491529|Vodafone/Truphone
4915555|Tismi BV
491531|Mtel
4915510|LEBARA
4915511|LEBARA
491556|1&1 Mobilfunk
4915630|Multiconnect
4915678|Argon Networks
Expand Down
1 change: 1 addition & 0 deletions resources/carrier/en/595.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
595984|Tigo
595985|Tigo
595986|Tigo
595987|Tigo
59599|Claro
Loading

0 comments on commit 1e6384e

Please sign in to comment.