blob: b6eeea43b6fc5b463dab09303863ad1f6493a299 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001/*!
2 * path-root-regex <https://github.com/jonschlinkert/path-root-regex>
3 *
4 * Copyright (c) 2016, Jon Schlinkert.
5 * Licensed under the MIT License.
6 */
7
8'use strict';
9
10module.exports = function() {
11 // Regex is modified from the split device regex in the node.js path module.
12 return /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/;
13};