validatorjs / validator.js

String validation
MIT License
23.01k stars 2.29k forks source link

de-LU regex for mobile phone validator is wrong #1727

Open lwintjen opened 3 years ago

lwintjen commented 3 years ago

Describe the bug I'm trying to validate de-LU mobile phones but the validator is returning false for valid mobile phone numbers.

Examples If applicable, add screenshots to help explain your problem. Another validator validating successfully the number image

Validator-js regex exp image image

Additional context Validator.js version: Node.js version: OS platform: [windows, linux, macOS, etc]

tux-tn commented 3 years ago

Thank you @lwintjen for the issue. PRs are welcome

tianz commented 2 years ago

@lwintjen Is your example surely a mobile number? According to https://en.wikipedia.org/wiki/Telephone_numbers_in_Luxembourg, phone numbers all start with 6x1