Skip to content

fix(isMobilePhone): add carrier prefix 77 for uz-UZ - #2974

Open
Ganesh1729-ui wants to merge 1 commit into
validatorjs:masterfrom
Ganesh1729-ui:fix/mobile-uz-uz-carrier-77
Open

Ganesh1729-ui wants to merge 1 commit into
validatorjs:masterfrom
Ganesh1729-ui:fix/mobile-uz-uz-carrier-77

Conversation

@Ganesh1729-ui

Copy link
Copy Markdown

The uz-UZ regex uses 7[1-69] for one of the carrier prefix groups. The character class [1-69] matches 1 through 6 and 9, but it misses 7. Uzbekistan carriers Ucell and Humans use the 77 prefix, so +998771234567 and similar numbers are incorrectly rejected.

Changed 7[1-69] to 7[1-9] to include the missing 77 prefix.

Added two valid test cases (+998771234567 and 998771234567) to the uz-UZ block.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9ff3424) to head (69ecb64).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2974   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2599      2599           
  Branches       658       658           
=========================================
  Hits          2599      2599           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants