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] Fix Costa Rica IBAN format#24900

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

Closed
Warxcell wants to merge2 commits intosymfony:2.7fromWarxcell:validator_iban_costa_rica
Closed

[Validator] Fix Costa Rica IBAN format#24900

Warxcell wants to merge2 commits intosymfony:2.7fromWarxcell:validator_iban_costa_rica

Conversation

@Warxcell
Copy link
Contributor

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsno
LicenseMIT
Doc PRno

Fix Costa Rica IBAN format:https://bank.codes/iban/structure/costa-rica/

'CI' =>'CI\d{2}[A-Z]{1}\d{23}',// Ivory Coast
'CM' =>'CM\d{2}\d{23}',// Cameron
'CR' =>'CR\d{2}\d{3}\d{14}',// Costa Rica
'CR' =>'CR\d{2}0\d{3}\d{14}',// Costa Rica
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure this is security related, thus needs to be changed on lower branches. I'd prefer the BC variant.

Copy link
Member

Choose a reason for hiding this comment

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

Accepting an invalid IBAN is a bug. There's no BC to preserve here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right.. this wont lead to crashing behavior. My bad 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

https://bank.codes/iban/structure/costa-rica/ implies it can be any kind of number btw... not sure in practice it's always0.

Copy link
ContributorAuthor

@WarxcellWarxcellNov 10, 2017
edited
Loading

Choose a reason for hiding this comment

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

@ro0NLhttps://www.iban.com/calculate-iban.html - this site does not give you ability to choose Reserve Number. It automatically set it 0.

Alsowiki says:

CRkk 0bbb cccc cccc cccc cc

0= always zero
b = bank code
c = Account number

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@ro0NL Ok I leave it like that and point it to 2.7

ro0NL reacted with thumbs up emoji
@xabbuhxabbuh added this to the2.7 milestoneNov 10, 2017
@WarxcellWarxcell changed the base branch from2.8 to2.7November 10, 2017 12:53
@WarxcellWarxcell changed the base branch from2.7 to2.8November 10, 2017 12:54
@WarxcellWarxcell changed the base branch from2.8 to2.7November 10, 2017 13:08
@fabpot
Copy link
Member

Thank you@Warxcell.

fabpot added a commit that referenced this pull requestNov 10, 2017
This PR was squashed before being merged into the 2.7 branch (closes#24900).Discussion----------[Validator] Fix Costa Rica IBAN format| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | no| License       | MIT| Doc PR        | noFix Costa Rica IBAN format:https://bank.codes/iban/structure/costa-rica/Commits-------b9b5e18 [Validator] Fix Costa Rica IBAN format
@fabpotfabpot closed thisNov 10, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@ro0NLro0NLro0NL 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.

5 participants

@Warxcell@fabpot@ro0NL@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp