Portfolio/node_modules/path-root-regex/index.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00

13 lines
351 B
JavaScript

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