Merge pull request #11321 from brucejo75/FIX-11320

This commit is contained in:
Filipe Névola
2021-02-26 08:54:30 -04:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ import { release, EOL } from "os";
// (Windows Subsystem for Linux) even if it otherwise looks like we're on Unix.
// https://github.com/Microsoft/BashOnWindows/issues/423#issuecomment-221627364
export function isWindowsLikeFilesystem() {
return process.platform === "win32" || release().indexOf("Microsoft") >= 0;
return process.platform === "win32" || release().toLowerCase().includes("microsoft");
}
export function toPosixPath(p: string, partialPath: boolean = false) {