AlkantarClanX12
Current Path : /proc/self/root/opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules/slash/ |
Current File : //proc/self/root/opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules/slash/index.js |
'use strict'; module.exports = function (str) { var isExtendedLengthPath = /^\\\\\?\\/.test(str); var hasNonAscii = /[^\x00-\x80]+/.test(str); if (isExtendedLengthPath || hasNonAscii) { return str; } return str.replace(/\\/g, '/'); };