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

feature: Luhn algorithm #2519

Open
mr-arashmousavi opened this issue Aug 13, 2024 · 0 comments
Open

feature: Luhn algorithm #2519

mr-arashmousavi opened this issue Aug 13, 2024 · 0 comments
Labels
flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features.

Comments

@mr-arashmousavi
Copy link

Description

I have implemented the Luhn algorithm for validating card numbers in the project. This algorithm, widely used to verify the validity of credit card numbers, has been added to the project to prevent invalid card numbers from being accepted.

Proposed solution

Adding the Luhn Algorithm: A function named isLuhn has been created that uses the Luhn algorithm to validate card numbers. This function ensures that only valid card numbers are accepted.

Writing Tests: Tests have been written to ensure the correct functionality of this algorithm. These tests cover various scenarios, including valid and invalid card numbers, to verify that the algorithm works as expected.

Would it be possible for me to create a Pull Request for these changes? Please let me know if I can proceed with submitting the PR.

@mr-arashmousavi mr-arashmousavi added flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features. labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features.
Development

No branches or pull requests

1 participant