Skip to content

Conversation

@OsricWilkinson
Copy link

Per https://www.gov.uk/hmrc-internal-manuals/paye-manual/paye055#employer-reference an employers reference is three digits, a slash, and then numbers and letters. The previous regex was 'not a slash', 'slash', 'not a slash'.
I've also tweaked the test cases since the test data was also wrong (Tax Offices never had five digit references).
Strictly, the second half of the pattern could be '{1,7}' instead of '+'

@hmrc-web-operations hmrc-web-operations changed the base branch from master to main November 16, 2021 11:13
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