mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Git - fix regression related to using path.sep (#269361)
This commit is contained in:
@@ -307,8 +307,9 @@ function normalizePath(path: string): string {
|
||||
path = path.toLowerCase();
|
||||
}
|
||||
|
||||
// Remove trailing separator
|
||||
if (path.charAt(path.length - 1) === sep) {
|
||||
// Trailing separator
|
||||
if (/[/\\]$/.test(path)) {
|
||||
// Remove trailing separator
|
||||
path = path.substring(0, path.length - 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user