Skip to content

Commit 7c29e0e

Browse files
Update the validation patterns
1 parent 40987ff commit 7c29e0e

File tree

2 files changed

+62
-49
lines changed

2 files changed

+62
-49
lines changed

resources/metadata.xml

Lines changed: 61 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9789,20 +9789,19 @@
97899789
<possibleLengths national="10"/>
97909790
<exampleNumber>8002123456</exampleNumber>
97919791
<nationalNumberPattern>
9792+
800(?:
9793+
14|
9794+
[2-9]\d
9795+
)\d{5}|
9796+
8[024]9[01]\d{6}|
97929797
8(?:
9793-
00(?:
9794-
14|
9795-
[2-9]\d
9796-
)|
9797-
(?:
9798-
33|
9799-
44|
9800-
55|
9801-
66|
9802-
77|
9803-
88
9804-
)[2-9]\d
9805-
)\d{5}
9798+
33|
9799+
44|
9800+
55|
9801+
66|
9802+
77|
9803+
88
9804+
)[2-9]\d{6}
98069805
</nationalNumberPattern>
98079806
</tollFree>
98089807
<premiumRate>
@@ -10310,7 +10309,7 @@
1031010309
7(?:
1031110310
[0167]\d|
1031210311
2[0-8]|
10313-
5[0-3]|
10312+
5[0-5]|
1031410313
8[0-7]
1031510314
)
1031610315
)\d{6}
@@ -10385,7 +10384,7 @@
1038510384
</territory>
1038610385

1038710386
<!-- Spain (ES) -->
10388-
<!-- http://www.minetur.gob.es/telecomunicaciones/es-ES/Servicios/Numeracion/Documents/14-10_Descripcion_PNN.pdf -->
10387+
<!-- https://avance.digital.gob.es/en-us/Servicios/Numeracion/Paginas/Plan.aspx -->
1038910388
<territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
1039010389
<availableFormats>
1039110390
<!-- 4-digit shortcodes which would otherwise be formatted as 'XXX X' -->
@@ -14452,7 +14451,7 @@
1445214451
55(?:
1445314452
4(?:
1445414453
[01]0|
14455-
5[0-2]
14454+
5[0-5]
1445614455
)|
1445714456
57[0-289]
1445814457
)\d{4}|
@@ -14521,7 +14520,7 @@
1452114520
7(?:
1452214521
38(?:
1452314522
[05]\d|
14524-
8[08]
14523+
8[018]
1452514524
)|
1452614525
8(?:
1452714526
33|
@@ -16988,7 +16987,7 @@
1698816987
nationalPrefixTransform rule can either be used to transform or to capture in fields like
1698916988
preferred_domestic_carrier_code; schema is designed this way. -->
1699016989
<territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
16991-
nationalPrefixForParsing="(000[259]\d{6})$|(?:(?:003768)0?)|0"
16990+
nationalPrefixForParsing="(000[2569]\d{4,6})$|(?:(?:003768)0?)|0"
1699216991
nationalPrefixTransformRule="$1" mobileNumberPortableRegion="true">
1699316992
<availableFormats>
1699416993
<!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
@@ -17139,14 +17138,15 @@
1713917138
</numberFormat>
1714017139
<numberFormat pattern="(\d)(\d{4})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
1714117140
<leadingDigits>
17142-
[36]|
17141+
3|
1714317142
4(?:
1714417143
2[09]|
1714517144
7[01]
17146-
)
17145+
)|
17146+
6[1-9]
1714717147
</leadingDigits>
1714817148
<leadingDigits>
17149-
[36]|
17149+
3|
1715017150
4(?:
1715117151
2(?:
1715217152
0|
@@ -17156,7 +17156,8 @@
1715617156
0[019]|
1715717157
1
1715817158
)
17159-
)
17159+
)|
17160+
6[1-9]
1716017161
</leadingDigits>
1716117162
<format>$1-$2-$3</format>
1716217163
</numberFormat>
@@ -17542,7 +17543,7 @@
1754217543
<format>$1-$2-$3</format>
1754317544
</numberFormat>
1754417545
<numberFormat pattern="(\d{2})(\d{4})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
17545-
<leadingDigits>[257-9]</leadingDigits>
17546+
<leadingDigits>[25-9]</leadingDigits>
1754617547
<format>$1-$2-$3</format>
1754717548
</numberFormat>
1754817549
<numberFormat pattern="(\d{4})(\d{3})(\d{3,4})">
@@ -17569,7 +17570,7 @@
1756917570
<generalDesc>
1757017571
<nationalNumberPattern>
1757117572
00[1-9]\d{6,14}|
17572-
[257-9]\d{9}|
17573+
[25-9]\d{9}|
1757317574
(?:
1757417575
00|
1757517576
[1-9]\d\d
@@ -17648,7 +17649,12 @@
1764817649
<mobile>
1764917650
<possibleLengths national="10"/>
1765017651
<exampleNumber>9012345678</exampleNumber>
17651-
<nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
17652+
<nationalNumberPattern>
17653+
(?:
17654+
601[0-4]0|
17655+
[7-9]0[1-9]\d\d
17656+
)\d{5}
17657+
</nationalNumberPattern>
1765217658
</mobile>
1765317659
<pager>
1765417660
<possibleLengths national="10"/>
@@ -20191,7 +20197,7 @@
2019120197
7(?:
2019220198
[0167]\d|
2019320199
2[0-8]|
20194-
5[0-3]|
20200+
5[0-5]|
2019520201
8[0-7]
2019620202
)
2019720203
)\d{6}
@@ -21392,15 +21398,12 @@
2139221398
<possibleLengths national="8"/>
2139321399
<exampleNumber>88123456</exampleNumber>
2139421400
<nationalNumberPattern>
21395-
(?:
21396-
83[01]|
21397-
92[0139]
21398-
)\d{5}|
21401+
92[0139]\d{5}|
2139921402
(?:
2140021403
5[05]|
2140121404
6[069]|
21402-
72|
21403-
8[015689]|
21405+
7[28]|
21406+
8[0135689]|
2140421407
9[013-9]
2140521408
)\d{6}
2140621409
</nationalNumberPattern>
@@ -21415,7 +21418,7 @@
2141521418
712[0-79]\d{4}|
2141621419
7(?:
2141721420
1[013-9]|
21418-
[5-9]\d
21421+
[5-79]\d
2141921422
)\d{5}
2142021423
</nationalNumberPattern>
2142121424
</voip>
@@ -23898,14 +23901,17 @@
2389823901
<possibleLengths national="8"/>
2389923902
<exampleNumber>92123456</exampleNumber>
2390023903
<nationalNumberPattern>
23904+
1505\d{4}|
2390123905
(?:
23902-
1505|
23903-
90[1-9]\d
23904-
)\d{4}|
23905-
(?:
23906-
7[126-9]|
23907-
9[1-9]
23908-
)\d{6}
23906+
7(?:
23907+
[126-9]\d|
23908+
41
23909+
)|
23910+
9(?:
23911+
0[1-9]|
23912+
[1-9]\d
23913+
)
23914+
)\d{5}
2390923915
</nationalNumberPattern>
2391023916
</mobile>
2391123917
<!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
@@ -24325,7 +24331,7 @@
2432524331
<nationalNumberPattern>
2432624332
(?:
2432724333
7\d|
24328-
8[1-38]
24334+
8[1-48]
2432924335
)\d{6}
2433024336
</nationalNumberPattern>
2433124337
</mobile>
@@ -26940,7 +26946,10 @@
2694026946
<possibleLengths national="8"/>
2694126947
<exampleNumber>81234567</exampleNumber>
2694226948
<nationalNumberPattern>
26943-
897[0-5]\d{4}|
26949+
89(?:
26950+
7[0-689]|
26951+
80
26952+
)\d{4}|
2694426953
(?:
2694526954
8(?:
2694626955
0[1-9]|
@@ -29868,9 +29877,11 @@
2986829877
(?:
2986929878
2742|
2987029879
305[3-9]|
29871-
472[247-9]|
29872-
505[2-57-9]|
29873-
983[2-47-9]
29880+
(?:
29881+
472|
29882+
983
29883+
)[2-47-9]|
29884+
505[2-57-9]
2987429885
)\d{6}|
2987529886
(?:
2987629887
2(?:
@@ -29978,9 +29989,11 @@
2997829989
(?:
2997929990
2742|
2998029991
305[3-9]|
29981-
472[247-9]|
29982-
505[2-57-9]|
29983-
983[2-47-9]
29992+
(?:
29993+
472|
29994+
983
29995+
)[2-47-9]|
29996+
505[2-57-9]
2998429997
)\d{6}|
2998529998
(?:
2998629999
2(?:

src/metadata/validations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
],
410410
"jp": [
411411
"^\\d{8,17}$",
412-
"^00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}$"
412+
"^00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}$"
413413
],
414414
"ke": [
415415
"^\\d{7,9}$",

0 commit comments

Comments
 (0)