You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
351 B
13 lines
351 B
/*!
|
|
* 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}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/;
|
|
};
|
|
|