Skip to content

Commit 5052292

Browse files
author
Jackson Kearl
committed
Update github remote parsing regex to fix microsoft#99063
1 parent 8fc68f7 commit 5052292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/url/browser/trustedDomains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async function getRemotes(fileService: IFileService, textFileService: ITextFileS
140140
const domains = new Set<string>();
141141
let match: RegExpExecArray | null;
142142

143-
const RemoteMatcher = /^\s*url\s*=\s*(?:git@|https:\/\/)github\.com(?::|\/)(\S*)\.git\s*$/mg;
143+
const RemoteMatcher = /^\s*url\s*=\s*(?:git@|https:\/\/)github\.com(?::|\/)(\S*)(?:\.git)?\s*$/mg;
144144
while (match = RemoteMatcher.exec(content)) {
145145
const repo = match[1];
146146
if (repo) {

0 commit comments

Comments
 (0)