Skip to content

Commit 2d000eb

Browse files
Update the validation patterns
1 parent 2e7aad2 commit 2d000eb

File tree

1 file changed

+36
-39
lines changed

1 file changed

+36
-39
lines changed

resources/metadata.xml

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,17 +2537,14 @@
25372537
<exampleNumber>412345678</exampleNumber>
25382538
<nationalNumberPattern>
25392539
4(?:
2540-
(?:
2541-
79|
2542-
94
2543-
)[01]|
2544-
83[0-389]
2540+
79[01]|
2541+
83[0-389]|
2542+
94[0-4]
25452543
)\d{5}|
25462544
4(?:
2547-
[0-3]\d|
2545+
[0-36]\d|
25482546
4[047-9]|
25492547
5[0-25-9]|
2550-
6[0-36-9]|
25512548
7[02-8]|
25522549
8[0-24-9]|
25532550
9[0-37-9]
@@ -3467,9 +3464,9 @@
34673464
)\d{4}|
34683465
(?:
34693466
2(?:
3470-
222|
3471-
[45]\d
3472-
)\d|
3467+
2\d|
3468+
[45]
3469+
)\d\d|
34733470
3(?:
34743471
1(?:
34753472
2[5-7]|
@@ -5609,17 +5606,14 @@
56095606
<exampleNumber>412345678</exampleNumber>
56105607
<nationalNumberPattern>
56115608
4(?:
5612-
(?:
5613-
79|
5614-
94
5615-
)[01]|
5616-
83[0-389]
5609+
79[01]|
5610+
83[0-389]|
5611+
94[0-4]
56175612
)\d{5}|
56185613
4(?:
5619-
[0-3]\d|
5614+
[0-36]\d|
56205615
4[047-9]|
56215616
5[0-25-9]|
5622-
6[0-36-9]|
56235617
7[02-8]|
56245618
8[0-24-9]|
56255619
9[0-37-9]
@@ -7879,17 +7873,14 @@
78797873
<exampleNumber>412345678</exampleNumber>
78807874
<nationalNumberPattern>
78817875
4(?:
7882-
(?:
7883-
79|
7884-
94
7885-
)[01]|
7886-
83[0-389]
7876+
79[01]|
7877+
83[0-389]|
7878+
94[0-4]
78877879
)\d{5}|
78887880
4(?:
7889-
[0-3]\d|
7881+
[0-36]\d|
78907882
4[047-9]|
78917883
5[0-25-9]|
7892-
6[0-36-9]|
78937884
7[02-8]|
78947885
8[0-24-9]|
78957886
9[0-37-9]
@@ -10348,12 +10339,12 @@
1034810339
as this breaks parsing (it treats all leading zeros as national prefixes. -->
1034910340
<!-- http://www.itu.int/oth/T020200004E/en -->
1035010341
<!-- http://www.arcep.ga -->
10351-
<territory id="GA" countryCode="241" internationalPrefix="00" nationalPrefix="0"
10342+
<territory id="GA" countryCode="241" internationalPrefix="00"
1035210343
nationalPrefixForParsing="0(11\d{6}|60\d{6}|61\d{6}|6[256]\d{6}|7[467]\d{6})"
1035310344
nationalPrefixTransformRule="$1">
1035410345
<availableFormats>
1035510346
<!-- If no leading zero was supplied, format with the national prefix. -->
10356-
<numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
10347+
<numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
1035710348
<leadingDigits>[2-7]</leadingDigits>
1035810349
<format>$1 $2 $3 $4</format>
1035910350
</numberFormat>
@@ -10363,8 +10354,11 @@
1036310354
<format>$1 $2 $3 $4</format>
1036410355
</numberFormat>
1036510356
<!-- Even in new way of dialling, 0 is mandatory when dialling domestically. -->
10366-
<numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
10367-
<leadingDigits>[167]</leadingDigits>
10357+
<numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
10358+
<leadingDigits>
10359+
11|
10360+
[67]
10361+
</leadingDigits>
1036810362
<format>$1 $2 $3 $4</format>
1036910363
</numberFormat>
1037010364
</availableFormats>
@@ -12425,10 +12419,9 @@
1242512419
510|
1242612420
6\d\d|
1242712421
7(?:
12428-
[01]\d|
12429-
2[0-256]|
12430-
3[0-2]|
12431-
49
12422+
[013]\d|
12423+
2[0-25-8]|
12424+
4[0-29]
1243212425
)
1243312426
)\d{4}
1243412427
</nationalNumberPattern>
@@ -22141,7 +22134,7 @@
2214122134
<leadingDigits>
2214222135
[089]|
2214322136
2[013]|
22144-
7[047]
22137+
7[0467]
2214522138
</leadingDigits>
2214622139
<format>$1 $2 $3 $4</format>
2214722140
</numberFormat>
@@ -22182,7 +22175,7 @@
2218222175
<nationalNumberPattern>
2218322176
(?:
2218422177
23|
22185-
7[047]|
22178+
7[0467]|
2218622179
[89]\d
2218722180
)\d{6}
2218822181
</nationalNumberPattern>
@@ -25017,7 +25010,7 @@
2501725010
399[0-3]|
2501825011
479[0-5]|
2501925012
76(?:
25020-
2[27]|
25013+
2[278]|
2502125014
3[0-37]
2502225015
)
2502325016
)\d{4}
@@ -25094,7 +25087,10 @@
2509425087
<possibleLengths national="9"/>
2509525088
<exampleNumber>712034567</exampleNumber>
2509625089
<nationalNumberPattern>
25097-
7020\d{5}|
25090+
(?:
25091+
630|
25092+
702
25093+
)0\d{5}|
2509825094
(?:
2509925095
6(?:
2510025096
[04]0|
@@ -29419,10 +29415,11 @@
2941929415
<!-- No tollFree or premiumRate information can be found. -->
2942029416
<!-- http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng -->
2942129417
<!-- http://www.itu.int/oth/T02020000E1/en -->
29422-
<territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
29423-
internationalPrefix="810" nationalPrefix="8">
29418+
<!-- The Trunk / National Prefix '0' or '8' is no longer used. -->
29419+
<!-- The International Prefix / IDD is changed to '00' from '8~10' -->
29420+
<territory id="UZ" countryCode="998" internationalPrefix="00">
2942429421
<availableFormats>
29425-
<numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP $FG">
29422+
<numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
2942629423
<leadingDigits>[235-9]</leadingDigits>
2942729424
<format>$1 $2 $3 $4</format>
2942829425
</numberFormat>

0 commit comments

Comments
 (0)