Commit 85dc594
hammadparveez
fix(isMobilePhone): correct fa-AF regex to match Afghan mobile numbers
The previous regex matched Afghan landline numbers (prefix 2x/5x) instead
of mobile numbers. Afghan mobile numbers use the 7x prefix (70-79) per
ITU-T E.164, covering operators AWCC (70x), Salaam (71x), MTN (77x),
Etisalat (78x), and Roshan (79x).
Updated test cases to use real Afghan mobile number examples.
Closes #17611 parent 88e0d3d commit 85dc594
2 files changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10946 | 10946 | | |
10947 | 10947 | | |
10948 | 10948 | | |
10949 | | - | |
10950 | | - | |
10951 | | - | |
| 10949 | + | |
| 10950 | + | |
| 10951 | + | |
| 10952 | + | |
| 10953 | + | |
| 10954 | + | |
10952 | 10955 | | |
10953 | 10956 | | |
10954 | | - | |
10955 | | - | |
10956 | | - | |
| 10957 | + | |
| 10958 | + | |
| 10959 | + | |
10957 | 10960 | | |
10958 | 10961 | | |
10959 | 10962 | | |
10960 | | - | |
10961 | | - | |
10962 | | - | |
| 10963 | + | |
| 10964 | + | |
10963 | 10965 | | |
10964 | 10966 | | |
10965 | 10967 | | |
| |||
0 commit comments