feat(isISO31661Numeric): Add validation for ISO 3166-1 numeric country codes by RobinvanderVliet · Pull Request #2399 · validatorjs/validator.js
The ISO 3166-1 standard contains three sets of country codes: two-letter, three-letter, and three-digit. Currently, we have a validator for two-letter codes (isISO31661Alpha2) and three-letter codes (isISO31661Alpha3), but not for three-digit codes. This pull request addresses that.
References
- https://en.wikipedia.org/wiki/ISO_3166-1
- https://en.wikipedia.org/wiki/ISO_3166-1_numeric
- https://www.iso.org/obp/ui/#search/code/
Checklist
- PR contains only changes related; no stray files, etc.
- README updated (where applicable)
- Tests written (where applicable)
- References provided in PR (where applicable)