diff options
| author | ST-DDT <[email protected]> | 2023-11-23 20:03:32 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-23 20:03:32 +0100 |
| commit | 9b00fe9f7353df50c67966141a5f024ec9b95208 (patch) | |
| tree | 685ac4468b0e89855ef5f8fe45f299f2b3416080 /src/modules/finance | |
| parent | aff0f8022d30a132a6945efac44c22688b5fb5b8 (diff) | |
| download | faker-9b00fe9f7353df50c67966141a5f024ec9b95208.tar.xz faker-9b00fe9f7353df50c67966141a5f024ec9b95208.zip | |
infra(unicorn): prefer-code-point (#2509)
Diffstat (limited to 'src/modules/finance')
| -rw-r--r-- | src/modules/finance/iban.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/finance/iban.ts b/src/modules/finance/iban.ts index 8b3f78c4..d639404c 100644 --- a/src/modules/finance/iban.ts +++ b/src/modules/finance/iban.ts @@ -1408,7 +1408,7 @@ const iban: Iban = { pattern100: ['001', '002', '003', '004', '005', '006', '007', '008', '009'], toDigitString: (str) => str.replace(/[A-Z]/gi, (match) => - String(match.toUpperCase().charCodeAt(0) - 55) + String((match.toUpperCase().codePointAt(0) ?? Number.NaN) - 55) ), }; |
