fix: fix ignore file on windows when used with linux then (#432)

This commit is contained in:
Roman Hotsiy
2021-11-01 19:22:33 +02:00
committed by GitHub
parent c853fbf8fb
commit 2d83c91cbf
9 changed files with 40 additions and 40 deletions

View File

@@ -286,19 +286,6 @@ export function exitWithError(message: string) {
process.exit(1);
}
/**
* Convert Windows backslash paths to slash paths: foo\\bar ➔ foo/bar
*/
export function slash(path: string): string {
const isExtendedLengthPath = /^\\\\\?\\/.test(path)
if (isExtendedLengthPath) {
return path
}
return path.replace(/\\/g, '/');
}
/**
* Checks if dir is subdir of parent
*/