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

Introduce Luhn Checksum Validation #1009

Merged
merged 6 commits into from Mar 19, 2023

Conversation

hf-kklein
Copy link
Contributor

Fixes Or Enhances

I noticed that the credit card check has been added recently in #924. I added a more general luhn_checksum validation that validates not only credit card numbers (strings with length [12-19]) but strings/numbers that have a Luhn checksum in general.

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

README.md Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Oct 4, 2022

Coverage Status

Coverage: 74.243% (+0.04%) from 74.207% when pulling d17ccdf on hf-kklein:luhn_checksum into 0665b95 on go-playground:master.

@hf-kklein hf-kklein marked this pull request as ready for review October 4, 2022 11:09
@hf-kklein hf-kklein requested a review from a team as a code owner October 4, 2022 11:09
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

3 participants