Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] 19 digits VISA card numbers are valid#25771

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromxabbuh:visa-19-digits
Jan 13, 2018

Conversation

@xabbuh
Copy link
Member

'/^5[1-5][0-9]{14}$/',
'/^2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12})$/',
),
// All Visa card numbers start with a 4. New cards have 16 digits. Old cards have 13.
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment should be removed or updated as well?

javiereguiluz reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

comment updated

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

@xabbuh thank you for fixing this error. Please, don't forget to update the comment too. Thanks!

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commita53cc5c intosymfony:2.7Jan 13, 2018
fabpot added a commit that referenced this pull requestJan 13, 2018
This PR was merged into the 2.7 branch.Discussion----------[Validator] 19 digits VISA card numbers are valid| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |some sources:*https://en.wikipedia.org/wiki/Payment_card_number*https://blog.vindicia.com/19-digit-visas-and-2-digit-mastercards/*https://www.nccgroup.trust/de/uber-uns/newsroom-and-events/blogs/2016/november/prepare-for-19-digit-credit-cards/*http://support.worldpay.com/support/kb/bg/testandgolive/tgl5103.htmlCommits-------a53cc5c 19 digits VISA card numbers are valid
@xabbuhxabbuh deleted the visa-19-digits branchJanuary 13, 2018 18:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+2 more reviewers

@dbrumanndbrumanndbrumann left review comments

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

7 participants

@xabbuh@fabpot@javiereguiluz@nicolas-grekas@dbrumann@Simperfit@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp