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

Add regex to validate the correct format of CUIT #181

Closed
wants to merge 2 commits into from

Conversation

@eamanu
Copy link
Contributor

eamanu commented Jan 6, 2020

According to #179 not any (2 digits) prefix are accepted on
argentinian CUIT. So I added an Regex to validate
correctly the CUIT's format.

eamanu added 2 commits Jan 6, 2020
According to #179 not any (2 digits) prefix are accepted on
argentinian CUIT. So I added an Regex to validate
correctly the CUIT's format.
@arthurdejong
Copy link
Owner

arthurdejong commented Jan 11, 2020

Hi @eamanu,

Thanks for your patch. I've only added the checking of the first two digits and not the checking for the place of the dashes. These kind of separators are generally ignored in python-stdnum because for a lot of numbers their placement is not very well defined.

I've merged your change as 0b30c4b and also ensured that the correct exception is raised (InvalidComponent).

@eamanu eamanu deleted the Yaerobi:fix-179 branch Jan 19, 2020
@eamanu
Copy link
Contributor Author

eamanu commented Jan 19, 2020

@arthurdejong thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.