Skip to content

isMobilePhone('uz-UZ') returns false for valid Uzbekistan carrier codes (e.g., 77) #2683

@Ramz001

Description

@Ramz001

Describe the bug
The isMobilePhone function returns false for valid Uzbekistan phone numbers that use newer carrier codes, such as 77 (Ucell) or potentially others like 33 (Humans) and 88 (Mobiuz). A valid number like +998770178734 currently fails validation.

In Uzbekistan, valid carrier prefixes immediately following the +998 country code currently include at least: 33, 55, 77, 88, 90, 91, 93, 94, 95, 97, 98, and 99.

Examples
const validator = require('validator');

// Expected: true, Actual: false
console.log(validator.isMobilePhone('+998770179999', 'uz-UZ'));

Additional context
Validator.js version: 13.15.26
Node.js version: 24.13.1
OS platform: windows

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