From ff847b5be0000c5b93a3197d5d3df130af636026 Mon Sep 17 00:00:00 2001 From: James Pepper Date: Thu, 8 Jan 2026 16:53:36 +0000 Subject: [PATCH] Potential fix for code scanning alert no. 1: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- services/simple-bip32.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/simple-bip32.ts b/services/simple-bip32.ts index 581e583d..fbbbb3cb 100644 --- a/services/simple-bip32.ts +++ b/services/simple-bip32.ts @@ -47,7 +47,7 @@ export class SimpleBIP32Node { for (const part of parts) { if (part === 'm') continue; - const index = parseInt(part.replace("'", ''), 10); + const index = parseInt(part.replace(/'/g, ''), 10); current = this.deriveChild(current, index); }