forked from Fediversity/fediversity.eu
10 lines
181 B
JavaScript
10 lines
181 B
JavaScript
|
export default function slash(path) {
|
||
|
const isExtendedLengthPath = path.startsWith('\\\\?\\');
|
||
|
|
||
|
if (isExtendedLengthPath) {
|
||
|
return path;
|
||
|
}
|
||
|
|
||
|
return path.replace(/\\/g, '/');
|
||
|
}
|