validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

feat(isLicensePlate): added License Plate Regex for en-SG

Open Sabarinathan07 opened this issue 2 years ago • 1 comments

Added validation for Singapore license plates.

The below are some valid Singapore license plates. Singapore license plates follow a format of three letters, four numbers, and a letter. SGX 1234 A SMD1234Z

Refrences: Wikipedia/Vehicle_registration_plates_of_Singapore

Checklist

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

Sabarinathan07 avatar Oct 28 '23 07:10 Sabarinathan07

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.95%. Comparing base (83d6ffd) to head (b0e8113). Report is 18 commits behind head on master.

:exclamation: Current head b0e8113 differs from pull request most recent head 7ba516f

Please upload reports for the commit 7ba516f to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##            master    #2333      +/-   ##
===========================================
- Coverage   100.00%   99.95%   -0.05%     
===========================================
  Files          108      107       -1     
  Lines         2482     2450      -32     
  Branches       627      619       -8     
===========================================
- Hits          2482     2449      -33     
- Partials         0        1       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Oct 28 '23 07:10 codecov[bot]

thanks for your contrib! 🎉

profnandaa avatar Aug 15 '24 18:08 profnandaa