Skip to content

Commit 7919e8a

Browse files
Update the validation patterns (GH-25)
2 parents 4ce3f52 + 5f72582 commit 7919e8a

File tree

1 file changed

+29
-21
lines changed

1 file changed

+29
-21
lines changed

resources/metadata.xml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5721,7 +5721,7 @@
57215721
<nationalNumberPattern>
57225722
88\d{5}|
57235723
(?:
5724-
8[0-59]|
5724+
8[0-69]|
57255725
9[017-9]
57265726
)\d{7}
57275727
</nationalNumberPattern>
@@ -11177,15 +11177,14 @@
1117711177
)|
1117811178
1(?:
1117911179
1(?:
11180-
00|
11181-
[124]\d|
11182-
3[01]
11180+
[03][01]|
11181+
[124]\d
1118311182
)|
1118411183
4\d\d
1118511184
)|
1118611185
(?:
1118711186
44|
11188-
68
11187+
6[89]
1118911188
)\d\d|
1119011189
5(?:
1119111190
[0157-9]\d\d|
@@ -12421,7 +12420,7 @@
1242112420
6\d\d|
1242212421
7(?:
1242312422
[01]\d|
12424-
2[156]|
12423+
2[1256]|
1242512424
3[12]|
1242612425
49
1242712426
)
@@ -18251,14 +18250,19 @@
1825118250
</fixedLine>
1825218251
<!-- Adding 202[89], 205[289], 207[68] and 209[135-7] from numbers found online. -->
1825318252
<mobile>
18254-
<possibleLengths national="10"/>
18253+
<possibleLengths national="9,10"/>
1825518254
<exampleNumber>2023123456</exampleNumber>
1825618255
<nationalNumberPattern>
18257-
2088\d{6}|
1825818256
(?:
18259-
20[23579]|
18260-
302
18261-
)\d{7}
18257+
20(?:
18258+
[23579]\d|
18259+
88
18260+
)|
18261+
30(?:
18262+
2\d|
18263+
4
18264+
)
18265+
)\d{6}
1826218266
</nationalNumberPattern>
1826318267
</mobile>
1826418268
<!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
@@ -18267,7 +18271,7 @@
1826718271
<uan>
1826818272
<possibleLengths national="9"/>
1826918273
<exampleNumber>301234567</exampleNumber>
18270-
<nationalNumberPattern>30[013-9]\d{6}</nationalNumberPattern>
18274+
<nationalNumberPattern>30[0135-9]\d{6}</nationalNumberPattern>
1827118275
</uan>
1827218276
</territory>
1827318277

@@ -24507,8 +24511,8 @@
2450724511
9\d
2450824512
)|
2450924513
[35]92(?:
24510-
3[034]|
24511-
9\d
24514+
[049]\d|
24515+
3[034]
2451224516
)
2451324517
)\d{3}|
2451424518
(?:
@@ -24597,7 +24601,11 @@
2459724601
<exampleNumber>600110000</exampleNumber>
2459824602
<nationalNumberPattern>
2459924603
600\d{6}|
24600-
6[06]923[34]\d{3}
24604+
6[06]92(?:
24605+
0\d|
24606+
3[349]|
24607+
49
24608+
)\d{3}
2460124609
</nationalNumberPattern>
2460224610
</voicemail>
2460324611
</territory>
@@ -25082,8 +25090,8 @@
2508225090
7020\d{5}|
2508325091
(?:
2508425092
6(?:
25085-
2\d|
25086-
40
25093+
[04]0|
25094+
2\d
2508725095
)|
2508825096
7(?:
2508925097
0[013-9]|
@@ -26142,9 +26150,9 @@
2614226150
<exampleNumber>81234567</exampleNumber>
2614326151
<nationalNumberPattern>
2614426152
8(?:
26145-
09|
26146-
95
26147-
)[0-2]\d{4}|
26153+
09[0-24]|
26154+
95[0-2]
26155+
)\d{4}|
2614826156
(?:
2614926157
8(?:
2615026158
0[1-8]|
@@ -27485,7 +27493,7 @@
2748527493
<exampleNumber>63012345</exampleNumber>
2748627494
<nationalNumberPattern>
2748727495
(?:
27488-
6[0235689]|
27496+
6[0-689]|
2748927497
77|
2749027498
9\d
2749127499
)\d{6}

0 commit comments

Comments
 (0)