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

Luhn algorithm for credit card number validation #3879

Open
oioki opened this issue Jul 31, 2024 · 0 comments
Open

Luhn algorithm for credit card number validation #3879

oioki opened this issue Jul 31, 2024 · 0 comments
Labels
filler Requires little effort to resolve. Ready to be picked up anytime.

Comments

@oioki
Copy link
Member

oioki commented Jul 31, 2024

Currently, Relay validates if a specific string is a payment card by using only regex. However, payment card numbers typically pass the Luhn algorithm check, what we could use to reduce false positives:

Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from mistyped or otherwise incorrect numbers.

@iambriccardo iambriccardo added the filler Requires little effort to resolve. Ready to be picked up anytime. label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filler Requires little effort to resolve. Ready to be picked up anytime.
Projects
None yet
Development

No branches or pull requests

2 participants