From f889d6548c99e7b8c396fa7a40f3abfabd21e690 Mon Sep 17 00:00:00 2001 From: Koen Vlaswinkel Date: Thu, 27 Mar 2025 10:59:14 +0100 Subject: [PATCH] Fix legacy label regex --- .../ql-vscode/src/query-history/history-item-label-provider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/ql-vscode/src/query-history/history-item-label-provider.ts b/extensions/ql-vscode/src/query-history/history-item-label-provider.ts index 86f2c4e32d7..89f0f89a027 100644 --- a/extensions/ql-vscode/src/query-history/history-item-label-provider.ts +++ b/extensions/ql-vscode/src/query-history/history-item-label-provider.ts @@ -64,6 +64,7 @@ export class HistoryItemLabelProvider { const rawLabel = item.userSpecifiedLabel ?? (this.config.format || "${queryName}"); + legacyLabelRegex.lastIndex = 0; // Reset the regex index to start searching from the start of the string if the strings are the same if (legacyLabelRegex.test(rawLabel)) { return this.legacyInterpolate(rawLabel, variables); }