2 * path-root-regex <https://github.com/jonschlinkert/path-root-regex>
4 * Copyright (c) 2016, Jon Schlinkert.
5 * Licensed under the MIT License.
10 module.exports = function() {
11 // Regex is modified from the split device regex in the node.js path module.
12 return /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/;