Commit ec687fb
committed
fix(isMobilePhone): correct de-LU regex to allow all valid mobile prefixes
The de-LU (Luxembourg) mobile phone regex incorrectly required the
third digit to be '1' (pattern: 6\d1), rejecting valid numbers like
+352628123456 or +352678123456.
Changed (6\d1) to (6\d{2}) to accept all Luxembourg mobile numbers
starting with 6 followed by any two digits.
Added test cases covering previously rejected valid prefixes (628, 661,
671, 691) and an additional invalid case.
Closes #17271 parent 7fdc788 commit ec687fb
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10659 | 10659 | | |
10660 | 10660 | | |
10661 | 10661 | | |
| 10662 | + | |
| 10663 | + | |
| 10664 | + | |
| 10665 | + | |
| 10666 | + | |
| 10667 | + | |
| 10668 | + | |
10662 | 10669 | | |
10663 | 10670 | | |
10664 | 10671 | | |
| |||
10669 | 10676 | | |
10670 | 10677 | | |
10671 | 10678 | | |
| 10679 | + | |
10672 | 10680 | | |
10673 | 10681 | | |
10674 | 10682 | | |
| |||
0 commit comments