Skip to content

Commit f63f3bd

Browse files
author
Jackson Kearl
committed
Allow dots in repo names for automatic domain trusting. Fixes microsoft#99063.
1 parent 5c74021 commit f63f3bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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(?::|\/)([^.]*)\.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)