Debian Codegraph @

path2/windows/_normalize-unc-root.js

raw
1 'use strict';
2
3 module.exports = function (device) {
4 return '\\\\' + device.replace(/^[\\\/]+/, '').replace(/[\\\/]+/g, '\\');
5 };