feat(isLicensePlate): Support for Pakistani vehicles by anasshakil · Pull Request #2207 · validatorjs/validator.js

Conversation

@anasshakil

This PR adds support for Pakistani vehicles license plates.

const isValid = isLicensePlate('IDS 7871', 'en-PK'); // valid

Supported formats

  • X YYYY
  • XXX YYY
  • XXX-YYY
  • XXX YYYY
  • XXYYYY
  • XX YYY
  • XXYYY
  • XXX YYYY YY
  • XXX YYY-YY
  • XXX-YYY-YY
  • XXXX YYYY YY

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

@anasshakil anasshakil changed the title Pakistan License Plate Support feat(isLicensePlate): Support for Pakistani vehicles

Mar 22, 2023

profnandaa

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than that, LGTM. Thanks for your contrib! 🎉

profnandaa

@vky5 vky5 mentioned this pull request

Sep 15, 2024

This was referenced

Sep 20, 2024

This was referenced

Sep 22, 2024

Labels

2 participants

@anasshakil @profnandaa