Current Path : /opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules.bundled/slash/ |
Current File : //opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules.bundled/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, '/'); };