Skip to content

Scope of phone validation #2234

@karladler

Description

@karladler

Question / Bug
Is the isMobilePhone function intended to only validate mobile phone numbers or should it actually also be possible for landlines? If yes, I would rewrite this as a bug, since some german landline numbers would not validate.

Examples
+4935178686876

Suggestion

  • Phone validation is in general a well discussed topic and really hard to do. Covering all countries and edge cases would also increase the package size a lot. It might be good, for the sake of this module, to completely outsource it to external packages like awesome-phonenumber. Tree shaking should do the rest.

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