Skip to content

Commit 6ecbb03

Browse files
Update the validation patterns (GH-58)
2 parents 499908a + 837a4ec commit 6ecbb03

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

resources/metadata.xml

+15-11
Original file line numberDiff line numberDiff line change
@@ -9212,11 +9212,11 @@
92129212
<possibleLengths national="10,11"/>
92139213
<exampleNumber>15123456789</exampleNumber>
92149214
<nationalNumberPattern>
9215-
15310\d{6}|
9215+
16[023]\d{7,8}|
92169216
1(?:
9217-
6[023]|
9218-
7[0-57-9]
9219-
)\d{7,8}|
9217+
5310|
9218+
7[0-57-9]\d
9219+
)\d{6}|
92209220
1(?:
92219221
5[0-25-9]|
92229222
76
@@ -26761,7 +26761,7 @@
2676126761
9(?:
2676226762
[0-4]\d|
2676326763
5[0-3]|
26764-
62
26764+
6[0-2]
2676526765
)
2676626766
)|
2676726767
9[0-8]\d\d
@@ -29585,7 +29585,7 @@
2958529585
[015-8]\d|
2958629586
2[067]|
2958729587
36|
29588-
4[0-5]|
29588+
4[0-6]|
2958929589
9[89]
2959029590
)\d{6}
2959129591
</nationalNumberPattern>
@@ -31211,7 +31211,7 @@
3121131211
<territory id="WF" countryCode="681" internationalPrefix="00">
3121231212
<availableFormats>
3121331213
<numberFormat pattern="(\d{2})(\d{2})(\d{2})">
31214-
<leadingDigits>[478]</leadingDigits>
31214+
<leadingDigits>[47-9]</leadingDigits>
3121531215
<format>$1 $2 $3</format>
3121631216
</numberFormat>
3121731217
<numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
@@ -31223,11 +31223,10 @@
3122331223
<nationalNumberPattern>
3122431224
(?:
3122531225
40|
31226-
72
31226+
72|
31227+
8\d{4}
3122731228
)\d{4}|
31228-
8\d{5}(?:
31229-
\d{3}
31230-
)?
31229+
[89]\d{5}
3123131230
</nationalNumberPattern>
3123231231
</generalDesc>
3123331232
<!-- Web searching only finds examples with the 72 prefix but the ITU document states that
@@ -31254,6 +31253,11 @@
3125431253
<exampleNumber>800012345</exampleNumber>
3125531254
<nationalNumberPattern>80[0-5]\d{6}</nationalNumberPattern>
3125631255
</tollFree>
31256+
<voip>
31257+
<possibleLengths national="6"/>
31258+
<exampleNumber>921234</exampleNumber>
31259+
<nationalNumberPattern>9[23]\d{4}</nationalNumberPattern>
31260+
</voip>
3125731261
<voicemail>
3125831262
<possibleLengths national="6"/>
3125931263
<exampleNumber>401234</exampleNumber>

src/metadata/validations.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@
905905
],
906906
"wf": [
907907
"^\\d{6}$",
908-
"^(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?$"
908+
"^(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}$"
909909
],
910910
"ws": [
911911
"^\\d{5,10}$",

0 commit comments

Comments
 (0)