Skip to content

Commit f889d65

Browse files
committed
Fix legacy label regex
1 parent 69db3f3 commit f889d65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/ql-vscode/src/query-history/history-item-label-provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export class HistoryItemLabelProvider {
6464
const rawLabel =
6565
item.userSpecifiedLabel ?? (this.config.format || "${queryName}");
6666

67+
legacyLabelRegex.lastIndex = 0; // Reset the regex index to start searching from the start of the string if the strings are the same
6768
if (legacyLabelRegex.test(rawLabel)) {
6869
return this.legacyInterpolate(rawLabel, variables);
6970
}

0 commit comments

Comments
 (0)