c1f24a445d0e5be926fccea1b1d99731cadb4cf82ac7e4c1aa454c40a9458e6123b192c757c851cd31c40329ea9e91d2fd10c43b63f1357bfb714f6cca3ef7 259 B

12345678910
  1. 'use strict';
  2. var path = require('path');
  3. var isglob = require('is-glob');
  4. module.exports = function globParent(str) {
  5. str += 'a'; // preserves full path in case of trailing path separator
  6. do {str = path.dirname(str)} while (isglob(str));
  7. return str;
  8. };