Skip to content

Fix checksum calculation when string contains leading zeros#1

Open
Jontsa wants to merge 1 commit intokomakino:masterfrom
Jontsa:leading-zeros-fix
Open

Fix checksum calculation when string contains leading zeros#1
Jontsa wants to merge 1 commit intokomakino:masterfrom
Jontsa:leading-zeros-fix

Conversation

@Jontsa
Copy link
Copy Markdown

@Jontsa Jontsa commented Jan 7, 2019

Luhn::toInt stripped leading zeroes from string which broke checksum calculation.

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.

1 participant