暂无描述

index.js 351B

12345678910111213
  1. /*!
  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. 'use strict';
  8. module.exports = function() {
  9. // Regex is modified from the split device regex in the node.js path module.
  10. return /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/;
  11. };