Skip to content

Commit bba833b

Browse files
neoscieCopilot
andauthored
Update src/lib/string.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1114fda commit bba833b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function isValidSwissIbanNumber(iBanNumber: string): boolean {
7474
if (!isNullOrEmpty(iBanNumber)) {
7575
const compactIban = iBanNumber.replaceAll(/\s+/g, "");
7676
if (!/^CH\d{19}$/.test(compactIban)) return false;
77-
const rearrangedIban = compactIban.slice(4) + compactIban.slice(0, 4).toString();
77+
const rearrangedIban = compactIban.slice(4) + compactIban.slice(0, 4);
7878

7979
const numericStr = Array.from(rearrangedIban, (ch) => {
8080
if (/[A-Z]/.test(ch)) {

0 commit comments

Comments
 (0)