11 lines
185 B
JavaScript
11 lines
185 B
JavaScript
'use strict';
|
|
module.exports = input => {
|
|
const isExtendedLengthPath = /^\\\\\?\\/.test(input);
|
|
|
|
if (isExtendedLengthPath) {
|
|
return input;
|
|
}
|
|
|
|
return input.replace(/\\/g, '/');
|
|
};
|