Skip to content

Wrong german phone number validation #1378

@TarasVerbniak

Description

@TarasVerbniak

Validation for german phone number is not working
I've checked real phone +4930405044550 from one of Berlin stores with de-DE regexp and it gives me false (https://www.google.com/maps/place/The+Store+X+Berlin/@52.5280015,13.4141284,17.42z/data=!4m12!1m6!3m5!1s0x47a84e1c439e08bb:0x853b981aa9de358c!2sThe+Store+X+Berlin!8m2!3d52.5275889!4d13.4153528!3m4!1s0x47a84e1c439e08bb:0x853b981aa9de358c!8m2!3d52.5275889!4d13.4153528)

You can try to run in console: /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/.test('+4930405044550') to see the result

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions