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

Detect Discover cards that are longer than 16 digits in length #3146

Closed
wants to merge 2 commits into from

Conversation

prashcr
Copy link
Contributor

@prashcr prashcr commented Feb 19, 2019

The current regex does not detect Discover cards that are longer than 16 digits, but their compliance guide states that cards may be between 16-19 digits. Reference

Detect Discover cards that are longer than 16 digits in length
@@ -104,7 +104,7 @@ def valid_start_year?(year)
# master: http://www.mastercard.com/ca/merchant/en/getstarted/Anatomy_MasterCard.html
# jcb: http://www.jcbcard.com/security/info.html
# diners_club: http://www.dinersclub.com/assets/DinersClub_card_ID_features.pdf
# discover: https://www.discover.com/credit-cards/help-center/glossary.html
# discover: https://www.discoverglobalnetwork.com/downloads/IPP_VAR_Compliance.pdf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prashcr The card number length change looks good, will you rollback the change to the URL?

@jknipp jknipp self-requested a review February 20, 2019 18:19
@prashcr
Copy link
Contributor Author

prashcr commented Feb 21, 2019 via email

@jknipp
Copy link
Member

jknipp commented Feb 22, 2019

Thanks @prashcr! Merged in dc9fb68

@jknipp jknipp closed this Feb 22, 2019
@prashcr prashcr deleted the patch-1 branch February 22, 2019 15:58
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