Skip to content

feat(isMobilePhone): add Trinidad and Tobago locale#2737

Open
puneetdixit200 wants to merge 1 commit into
validatorjs:masterfrom
puneetdixit200:add-trinidad-tobago-mobile-validation
Open

feat(isMobilePhone): add Trinidad and Tobago locale#2737
puneetdixit200 wants to merge 1 commit into
validatorjs:masterfrom
puneetdixit200:add-trinidad-tobago-mobile-validation

Conversation

@puneetdixit200
Copy link
Copy Markdown

Adds en-TT mobile phone validation for Trinidad and Tobago.

The mobile ranges follow the Trinidad and Tobago metadata in Google libphonenumber (territory id="TT"), including the 868 area code and mobile NXX ranges. This contributes to #1761.

I checked open PRs and did not find an existing en-TT / Trinidad and Tobago mobile validation PR.

Verification

  • npm run build
  • npm run lint
  • npx mocha --require @babel/register --reporter dot --recursive test/validators.test.js
  • npm test

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7fdc788) to head (efdec59).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2737   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2587      2587           
  Branches       656       656           
=========================================
  Hits          2587      2587           

☔ 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.

1 participant