Registry Mirror
Skip to content

Honduras regex in isMobilePhone is wrong #1981

Closed

Description

@capdilla

Describe the bug
the regex of es-HN in isMobilePhone is incorrect, the correct regex should be /^(\+?504)?[9|8|3|2]\d{7}$/ the phone numbers can also start with 3 or 2

'es-HN': /^(\+?504)?[9|8]\d{7}$/,

Additional context
Validator.js version: 13.7.0

Activity

  1. ademyan05 commented on Jun 11, 2022

    @ademyan05
    Contributor

    Hey I was able to valid that as well, i am going to add the change and raise PR

  2. ademyan05 commented on Jun 11, 2022

    @ademyan05
    Contributor
  3. rubiin commented on Jul 18, 2022

    @rubiin
    Member

    #1983 has been merged, closing this. Watch out for next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions