Skip to content

Commit 139226f

Browse files
authored
Merge pull request #3972 from github/koesie10/fix-legacy-history-item-labels
Fix legacy label regex
2 parents 69db3f3 + f889d65 commit 139226f

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)