Skip to content

Commit

Permalink
Update the validation patterns (GH-17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan authored Feb 28, 2024
2 parents 76c090e + 87dd402 commit 46fd709
Showing 1 changed file with 41 additions and 45 deletions.
86 changes: 41 additions & 45 deletions resources/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4225,11 +4225,10 @@
<possibleLengths national="10" localOnly="7"/>
<exampleNumber>4413701234</exampleNumber>
<nationalNumberPattern>
441909\d{4}|
441(?:
[2378]\d|
5[0-39]|
92
9[02]
)\d{5}
</nationalNumberPattern>
</mobile>
Expand Down Expand Up @@ -8026,14 +8025,17 @@
<possibleLengths national="9"/>
<exampleNumber>601123456</exampleNumber>
<nationalNumberPattern>
7060\d{5}|
(?:
60[1-8]|
60[1-8]\d|
7(?:
0[2-5]|
[2379]\d
0(?:
[2-5]\d|
60
)|
190|
[2379]\d\d
)
)\d{6}
)\d{5}
</nationalNumberPattern>
</mobile>
<tollFree>
Expand Down Expand Up @@ -9388,7 +9390,7 @@
)|
7(?:
[0167]\d|
2[0-2]|
2[0-4]|
5[01]|
8[0-3]
)
Expand Down Expand Up @@ -12342,6 +12344,7 @@
7(?:
[01]\d|
2[156]|
31|
49
)
)\d{4}
Expand Down Expand Up @@ -15541,7 +15544,7 @@
)\d|
7(?:
00[378]|
97[7-9]
97\d
)
)\d{5}
</nationalNumberPattern>
Expand Down Expand Up @@ -18735,7 +18738,7 @@
<tollFree>
<possibleLengths national="8"/>
<exampleNumber>80021234</exampleNumber>
<nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
<nationalNumberPattern>800[1256]\d{4}</nationalNumberPattern>
</tollFree>
</territory>

Expand Down Expand Up @@ -19179,22 +19182,8 @@
<numberFormat pattern="(\d{4})(\d{5})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>
5(?:
2[2-489]|
3[5-9]|
9
)|
8(?:
0[89]|
92
)
</leadingDigits>
<leadingDigits>
5(?:
2(?:
[2-49]|
8[235-9]
)|
3[5-9]|
2[2-46-9]|
3[3-9]|
9
)|
8(?:
Expand Down Expand Up @@ -19254,7 +19243,7 @@
)|
7(?:
[0167]\d|
2[0-2]|
2[0-4]|
5[01]|
8[0-3]
)
Expand Down Expand Up @@ -22199,7 +22188,11 @@
<!-- Fixed line format for 2 digit area code -->
<numberFormat pattern="(\d{2})(\d{3})(\d{2,3})" nationalPrefixFormattingRule="$NP$FG">
<leadingDigits>
[3-7]|
[3-6]|
7(?:
0[0-689]|
[1-79]
)|
8[2-9]
</leadingDigits>
<format>$1 $2 $3</format>
Expand Down Expand Up @@ -22287,7 +22280,7 @@
)\d{6}|
(?:
7(?:
0[13-689]|
0[13-9]|
[12]\d
)|
8(?:
Expand Down Expand Up @@ -22757,6 +22750,7 @@
<exampleNumber>9841234567</exampleNumber>
<nationalNumberPattern>
9(?:
00|
6[0-3]|
7[024-6]|
8[0-24-68]
Expand Down Expand Up @@ -23060,18 +23054,14 @@
<possibleLengths national="8"/>
<exampleNumber>92123456</exampleNumber>
<nationalNumberPattern>
1505\d{4}|
(?:
7(?:
[1289]\d|
6[7-9]|
7[0-5]
)|
9(?:
0[1-9]|
[1-9]\d
)
)\d{5}
1505|
90[1-9]\d
)\d{4}|
(?:
7[126-9]|
9[1-9]
)\d{6}
</nationalNumberPattern>
</mobile>
<!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
Expand Down Expand Up @@ -26030,7 +26020,7 @@
<leadingDigits>
[369]|
8(?:
0[1-8]|
0[1-9]|
[1-9]
)
</leadingDigits>
Expand Down Expand Up @@ -26078,7 +26068,10 @@
<possibleLengths national="8"/>
<exampleNumber>81234567</exampleNumber>
<nationalNumberPattern>
895[0-2]\d{4}|
8(?:
09|
95
)[0-2]\d{4}|
(?:
8(?:
0[1-8]|
Expand Down Expand Up @@ -27939,7 +27932,10 @@
<exampleNumber>7715123</exampleNumber>
<nationalNumberPattern>
(?:
55[4-6]|
5(?:
4[0-5]|
5[4-6]
)|
6(?:
[09]\d|
3[02]|
Expand Down Expand Up @@ -29025,7 +29021,7 @@
7(?:
0[1-46-8]|
1[2-9]|
2[04-7]|
2[04-8]|
3[1247]|
4[037]|
5[47]|
Expand Down Expand Up @@ -29131,7 +29127,7 @@
7(?:
0[1-46-8]|
1[2-9]|
2[04-7]|
2[04-8]|
3[1247]|
4[037]|
5[47]|
Expand Down

0 comments on commit 46fd709

Please sign in to comment.