diff --git a/extensions/ql-vscode/src/databaseFetcher.ts b/extensions/ql-vscode/src/databaseFetcher.ts index 22bb84958c8..5349ad5e2d7 100644 --- a/extensions/ql-vscode/src/databaseFetcher.ts +++ b/extensions/ql-vscode/src/databaseFetcher.ts @@ -426,7 +426,7 @@ function extractProjectSlug(lgtmUrl: string): string | undefined { if (!match) { return; } - return match[2]; + return match[1]; } // exported for testing