From a774c879d4cf08a76fc404771883807d27465265 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Thu, 7 Dec 2023 22:37:37 -0700 Subject: refactor: code cleanup (#1476) - auto update `settings.json` due to new vscode version - replace deprecated `e.keyCode` with `e.key` - fix various code snippets with sonarlint and other lint plugins --- src/helpers/update-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers/update-helpers.ts') diff --git a/src/helpers/update-helpers.ts b/src/helpers/update-helpers.ts index 9a36850fc..ca541c4b0 100644 --- a/src/helpers/update-helpers.ts +++ b/src/helpers/update-helpers.ts @@ -5,7 +5,7 @@ export function getFerdiumVersion( currentLocation: string, ferdiumVersion: string, ): string { - const matches = currentLocation?.match(/version=([^&]*)/); + const matches = currentLocation.match(/version=([^&]*)/); if (matches !== null) { return `v${matches[1]}`; } -- cgit v1.2.3-70-g09d2