java-iban icon indicating copy to clipboard operation
java-iban copied to clipboard

IBAN Length Validation Issue for Algeria (DZ)

Open saitohfin opened this issue 8 months ago • 0 comments

Hi!

Using your last version library, we noticed an issue with IBAN validation for Algeria (DZ). Specifically, an IBAN like DZ5500200041041220016127 is throwing the following error:

Input failed length validation: found 24, but expect 26 for country code.

However, according to the IBAN structure documentation, the IBAN length for Algeria should be 24 characters, not 26.

https://www.ibantest.com/en/iban-structure/algeria

Steps to Reproduce:

  • Validate the IBAN DZ5500200041041220016127 using the library.
  • Observe the error message indicating an incorrect expected length

Actual Behavior:

The library throws an error stating the expected length is 26 characters for Algeria.

Thanks for your work

Image

saitohfin avatar Jun 03 '25 15:06 saitohfin