UNPKG

@saiforceone/dirt-cli

Version:

Official CLI Utility for the D.I.R.T stack

8 lines (7 loc) 238 B
/** * @description Helper function that fixes windows file paths. Not needed for Posix * @param {string} filePath */ export function normalizeWinFilePath(filePath: string) { return filePath.replace(/^([A-Z]:\\)([A-Z]:\\)/i, '$2'); }