feat(isLicensePlate): Support for Pakistani vehicles by anasshakil · Pull Request #2207 · validatorjs/validator.js
Conversation
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)
anasshakil
changed the title
Pakistan License Plate Support
feat(isLicensePlate): Support for Pakistani vehicles
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! 🎉
README.md
Outdated
Show resolved
Hide resolved
vky5
mentioned this pull request
This was referenced
Sep 20, 2024This was referenced
Sep 22, 2024This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters