aboutsummaryrefslogtreecommitdiff
path: root/node_modules/glob-parent/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/glob-parent/index.js')
-rw-r--r--node_modules/glob-parent/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/node_modules/glob-parent/index.js b/node_modules/glob-parent/index.js
index 9a7e59375..61615f1ac 100644
--- a/node_modules/glob-parent/index.js
+++ b/node_modules/glob-parent/index.js
@@ -2,10 +2,9 @@
var path = require('path');
var isglob = require('is-glob');
-var pathDirname = require('path-dirname');
module.exports = function globParent(str) {
str += 'a'; // preserves full path in case of trailing path separator
- do {str = pathDirname.posix(str)} while (isglob(str));
- return str.replace(/\\([\*\?\|\[\]\(\)\{\}])/g, '$1');
+ do {str = path.dirname(str)} while (isglob(str));
+ return str;
};