Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NINO validation for GB #121

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix NINO validation for GB #121

wants to merge 4 commits into from

Conversation

strotgen
Copy link
Contributor

The prefixes in the code are based on documentation archived in 2012. This PR updates the validation rules to use the most recent and accurate ones.

New validations: https://www.gov.uk/hmrc-internal-manuals/national-insurance-manual/nim39110

All prefixes are valid except:

  • The characters D, F, I, Q, U, and V are not used as either the first or second letter of a NINO prefix.
  • The letter O is not used as the second letter of a prefix.
  • Prefixes BG, GB, KN, NK, NT, TN and ZZ are not to be used

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