pages/node_modules/slash/index.js
git_repo_user 0a38b60f32 first commit
2025-08-29 21:42:23 +00:00

9 lines
181 B
JavaScript

export default function slash(path) {
const isExtendedLengthPath = path.startsWith('\\\\?\\');
if (isExtendedLengthPath) {
return path;
}
return path.replace(/\\/g, '/');
}