mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Git - don't use look-behind regex (#236447)
This commit is contained in:
@@ -502,7 +502,7 @@ export class Git {
|
||||
const repoUri = Uri.file(repositoryRootPath);
|
||||
const pathUri = Uri.file(pathInsidePossibleRepository);
|
||||
if (repoUri.authority.length !== 0 && pathUri.authority.length === 0) {
|
||||
const match = /(?<=^\/?)([a-zA-Z])(?=:\/)/.exec(pathUri.path);
|
||||
const match = /^[\/]?([a-zA-Z])[:\/]/.exec(pathUri.path);
|
||||
if (match !== null) {
|
||||
const [, letter] = match;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user