diff options
Diffstat (limited to 'node_modules/path-root-regex/index.js')
-rw-r--r-- | node_modules/path-root-regex/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/path-root-regex/index.js b/node_modules/path-root-regex/index.js new file mode 100644 index 000000000..b6eeea43b --- /dev/null +++ b/node_modules/path-root-regex/index.js @@ -0,0 +1,13 @@ +/*! + * 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}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/; +}; |