stdnum-js icon indicating copy to clipboard operation
stdnum-js copied to clipboard

Fix NINO validation for GB

Open strotgen opened this issue 1 year ago • 0 comments

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

strotgen avatar Aug 20 '24 15:08 strotgen