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

Stricter companies house number validation #3

Merged
merged 2 commits into from Nov 12, 2012

Conversation

alan
Copy link
Contributor

@alan alan commented Nov 12, 2012

Enforces the prefix of a companies house number from a white list of
prefixes obtained from CompaniesHouse.

Enforces the prefix of a companies house number from a white list of
prefixes obtained from CompaniesHouse.
@alan
Copy link
Contributor Author

alan commented Nov 12, 2012

@gocardless/backend can you have a look?

@@ -4,6 +4,11 @@ class Request

BASE_URI = 'http://data.companieshouse.gov.uk/doc/company/'

ALLOWED_PREFIXES = %w(AC BR FC GE IP LP OC RC SE ZC
Copy link
Owner

Choose a reason for hiding this comment

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

Can you comment the \d\d please?

tomblomfield-zz pushed a commit that referenced this pull request Nov 12, 2012
Stricter companies house number validation
@tomblomfield-zz tomblomfield-zz merged commit 053255f into master Nov 12, 2012
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.

None yet

2 participants