Skip to content

finance.iban does not create valid iban #1832

@napres1001

Description

@napres1001

Pre-Checks

Describe the bug

when using:
"finance.iban" the iban is always invalid.
In my case i used:
faker.finance.iban(false, 'DE')
and got for example:
DE88 1533 9441 3800 0600 27

but even the iban mentioned in the documentation are not valid:
https://fakerjs.dev/api/finance.html#iban

to check, if a iban is valid you can use:
https://www.ibancalculator.com/iban_validieren.html

Minimal reproduction code

https://stackblitz.com/edit/faker-js-demo-ngipzd?embed=1&file=index.html

Additional Context

No response

Environment Info

System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-1245U
    Memory: 3.17 GB / 15.44 GB
  Binaries:
    Node: 18.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 2.15.12 - ~\source\repos\wl-cypress-smoke-test\node_modules\.bin\npm.CMD
    npm version 9.4.2
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (109.0.1518.70)
    Internet Explorer: 11.0.19041.1566
    Google Chrome: 109.0.5414.120
    Mozialle Firefox: 109.0.1

faker 7.6.0
by npm install @faker-js/faker --save-dev

Which module system do you use?

  • CJS
  • ESM

Used Package Manager

npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: bugSomething isn't workingm: financeSomething is referring to the finance modulep: 1-normalNothing urgents: awaiting more infoAdditional information are requested

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions