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 NIF validation for Portugal. #120

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Fix NIF validation for Portugal. #120

merged 1 commit into from
Jul 12, 2024

Conversation

strotgen
Copy link
Contributor

Some valid NIF PT numbers are being marked as invalid by the library. A client reported this bug, so I added a few tests for this specific issue.

You can find more info at https://www.nif.pt/.

@strotgen strotgen closed this Jul 10, 2024
@strotgen strotgen reopened this Jul 10, 2024
Copy link

@AlexChesser AlexChesser left a comment

Choose a reason for hiding this comment

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

LGTM

Is it possible to add a link to the reference we're using to supply the formula? (In future) It would be really nice if we had a reference to where we're getting these validation formulas. They seem pretty magic number-y without comments.

@AlexChesser
Copy link

By link to the reference I mean in a code comment :)

@koblas koblas merged commit ecace41 into koblas:main Jul 12, 2024
2 checks passed
@koblas
Copy link
Owner

koblas commented Jul 12, 2024

@strotgen thanks for finding and fixing the issue.

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.

3 participants