From 9b00fe9f7353df50c67966141a5f024ec9b95208 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 23 Nov 2023 20:03:32 +0100 Subject: infra(unicorn): prefer-code-point (#2509) --- src/modules/finance/iban.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/finance') 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) ), }; -- cgit v1.2.3