Skip to content

Incorrect extraction of account number for Iceland, Mauritius, Ireland, Seychelles, Portugal, Montenegro #544

@julienaltieri

Description

@julienaltieri

Describe the bug
Account number is not correct or missing for Iceland, Mauritius, Ireland, Seychelles, Portugal, Montenegro.

To Reproduce
run ibantools.extractIBAN(iban) from node.js (latest npm version)
Iceland image
Mauritius image
Ireland image
Seychelles image
Portugal image
Montenegro image

Note: I haven't checked all the countries but the pattern seems to be that it's incorrect when the country's IBAN format does not end with the account number. (more info on my testing source at the bottom)

Expected behavior
Account numbers should be correct and populated for all these countries.

Environment:
node.js ibantools v4.5.1

Additional context
To replicate easily and fix globally:

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions