Skip to content

isMobilePhone not defined? #1988

Open
Open
@jianmin-chen

Description

@jianmin-chen

Describe the bug
I'm running the latest version of the library and isMobilePhone is not defined. I imported the validator functions as so:

import isEmail from "validator/lib/isEmail.js";
import isMobilePhone from "validator/lib/isMobilePhone.js";

isEmail works, but using isMobilePhone returns an error. Is there something I'm not aware of? I searched node_modules/validator and isMobilePhone does not appear to be in either es/lib or lib/util.

Examples

...
phoneNumber: ValidatorError: isMobilePhone is not a function
...

Additional context
Validator.js version: 13.7.0
Node.js version: 16.14.2
OS platform: Windows

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