mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 20:57:44 +00:00
fix: fix ignore file on windows when used with linux then (#432)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user