From b1b07697761ba5b9cf909413205c2b3f26fba184 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 1 Nov 2020 23:09:14 -0500 Subject: [PATCH] Passes existing flags --- src/terminal/linkProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/linkProvider.ts b/src/terminal/linkProvider.ts index abd2d3a..faaf215 100644 --- a/src/terminal/linkProvider.ts +++ b/src/terminal/linkProvider.ts @@ -35,7 +35,7 @@ export class GitTerminalLinkProvider implements Disposable, TerminalLinkProvider const branchesAndTags = await Container.git.getBranchesAndOrTags(repoPath); // Don't use the shared regex instance directly, because we can be called reentrantly (because of the awaits below) - const regex = new RegExp(refRegex, 'gi'); + const regex = new RegExp(refRegex, refRegex.flags); let match; do {