Skip to content

Conversation

@fra87
Copy link
Contributor

@fra87 fra87 commented Aug 28, 2023

The EAN checksum calculation is correct only if the self.ean variable does not have the checksum value already present. This may not be true in some cases (e.g. someone trying to compare an already present checksum with the library-generated one)

@WhyNotHugo WhyNotHugo merged commit 996eaf9 into WhyNotHugo:main Sep 21, 2023
WhyNotHugo added a commit that referenced this pull request Sep 21, 2023
@WhyNotHugo
Copy link
Owner

Apologies, I missed your PR earlier.

I had written a fix for this same issue (#215), but yours is a lot simpler, so I've merged your approach but kept the tests from my PR.

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