labels.js 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);