Skip to content

Add format prefix/suffix validator for UK NINO#334

Merged
GeoffreyRdn merged 2 commits intomainfrom
geoffrey.redon/add-uk-nino-prefix-suffix-validator
Mar 9, 2026
Merged

Add format prefix/suffix validator for UK NINO#334
GeoffreyRdn merged 2 commits intomainfrom
geoffrey.redon/add-uk-nino-prefix-suffix-validator

Conversation

@GeoffreyRdn
Copy link
Copy Markdown
Contributor

UK National Insurance Number - add prefix/suffix validator

For now, UK Insurance Number is validated with a simple and non restrictive regex.
However, we need to respect the official format.

JIRA link

@GeoffreyRdn GeoffreyRdn self-assigned this Mar 9, 2026
@GeoffreyRdn GeoffreyRdn requested a review from a team as a code owner March 9, 2026 13:44
Comment thread sds/src/secondary_validation/uk_nino_format_check.rs Outdated
Comment thread sds/src/secondary_validation/uk_nino_format_check.rs Outdated
Copy link
Copy Markdown
Contributor

@trosenblatt trosenblatt left a comment

Choose a reason for hiding this comment

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

LGTM with minor comment to use const instead of hard coded numbers

@GeoffreyRdn GeoffreyRdn merged commit dbf9954 into main Mar 9, 2026
4 checks passed
@GeoffreyRdn GeoffreyRdn deleted the geoffrey.redon/add-uk-nino-prefix-suffix-validator branch March 9, 2026 16:04
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.

2 participants