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(DTFS2-7223): ensure registration number regex only accepts 8-character strings #943

Conversation

oscar-richardson-softwire
Copy link
Contributor

Introduction ✏️

The regex for Companies House registration numbers in MDM currently accepts 7 or 8 character strings, when in fact all valid registration numbers are 8-character strings. This is not a significant issue, as in DTFS (which consumes the /companies MDM endpoint) we restrict to 8 character strings, but we should still change this in MDM for consistency with DTFS.

Resolution ✔️

  • changed Companies House registration number regex and length validation, and associated tests.

Copy link

sonarcloud bot commented Jun 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@oscar-richardson-softwire oscar-richardson-softwire merged commit 18ba1c5 into main Jun 12, 2024
17 checks passed
@oscar-richardson-softwire oscar-richardson-softwire deleted the fix/DTFS2-7223/ensure-companies-house-registration-number-regex-only-accepts-8-character-strings branch June 12, 2024 14:26
abhi-markan added a commit that referenced this pull request Jun 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.21.3](v1.21.2...v1.21.3)
(2024-06-12)


### Bug Fixes

* **DTFS2-7223:** ensure registration number regex only accepts
8-character strings
([#943](#943))
([18ba1c5](18ba1c5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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