iban4j icon indicating copy to clipboard operation
iban4j copied to clipboard

Iban with 22 characters failing validation (Bulgaria and Costa Rica)

Open tmdomingues opened this issue 7 years ago • 1 comments

tmdomingues avatar Jan 22 '18 01:01 tmdomingues

Same issue...

pmtitou avatar Feb 09 '18 12:02 pmtitou

I think this matter is fixed and needs to be closed.

MR-Os1 avatar Dec 21 '23 14:12 MR-Os1

@MR-Os1 can you provide a sample that addresses the resolution?

hajk1 avatar Dec 21 '23 16:12 hajk1

Both of the countries have BBAN Structure with 18 characters.

https://github.com/arturmkrtchyan/iban4j/blob/cf63318ec5742890705a1ea629609a6e03fad166/src/main/java/org/iban4j/bban/BbanStructure.java#L120C1-L123C69

https://github.com/arturmkrtchyan/iban4j/blob/cf63318ec5742890705a1ea629609a6e03fad166/src/main/java/org/iban4j/bban/BbanStructure.java#L107C1-L112C68

and also, the testcases contain 22 characters and all of them is passed.

https://github.com/arturmkrtchyan/iban4j/blob/cf63318ec5742890705a1ea629609a6e03fad166/src/test/java/org/iban4j/ValidIbanValidationTest.java#L40C1-L51C6

MR-Os1 avatar Dec 24 '23 11:12 MR-Os1

Thanks for checking @MR-Os1, so I'm going to close the ticket.

hajk1 avatar Dec 24 '23 13:12 hajk1