Skip to content

feat(isLicensePlate): add tr-TR locale - #2961

Open
bahriy-dev wants to merge 1 commit into
validatorjs:masterfrom
bahriy-dev:feat/is-license-plate-tr
Open

bahriy-dev wants to merge 1 commit into
validatorjs:masterfrom
bahriy-dev:feat/is-license-plate-tr

Conversation

@bahriy-dev

Copy link
Copy Markdown

Adds tr-TR to isLicensePlate for standard Turkish plates.

Format: two-digit province code (01–81), then one of

  • 1 letter + 4 or 5 digits (34 A 1234, 06 A 12345)
  • 2 letters + 3 or 4 digits (35 AB 123, 01 AB 1234)
  • 3 letters + 2 or 3 digits (81 ABC 12, 16 ABC 123)

Letters exclude Q, W, X and the Turkish-specific Ç Ğ İ Ö Ş Ü. Groups may be separated by a single space or written together (34ABC123). Special series such as military plates (999999) are not covered.

References:

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

codecov Bot commented Nov 13, 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 (3cd0b5a).

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

☔ 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