7263b6263187de4345b992ec451e23175b1cde0b7ef3cdd246da9d94e201c43b7e499045a218f4c94357e0b18009978a986d5fc83b442c98ea943d10602b4c 343 B

123456789
  1. import { hasDriveLetter } from './extpath.js';
  2. import { isWindows } from './platform.js';
  3. export function normalizeDriveLetter(path, isWindowsOS = isWindows) {
  4. if (hasDriveLetter(path, isWindowsOS)) {
  5. return path.charAt(0).toUpperCase() + path.slice(1);
  6. }
  7. return path;
  8. }
  9. let normalizedUserHomeCached = Object.create(null);