We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65249f9 commit cdbea5fCopy full SHA for cdbea5f
2 files changed
index.js
@@ -2,9 +2,10 @@
2
3
var path = require('path');
4
var isglob = require('is-glob');
5
+var pathDirname = require('path-dirname');
6
7
module.exports = function globParent(str) {
8
str += 'a'; // preserves full path in case of trailing path separator
- do {str = path.dirname(str)} while (isglob(str));
9
+ do {str = pathDirname.posix(str)} while (isglob(str));
10
return str;
11
};
package.json
@@ -28,7 +28,8 @@
28
},
29
"homepage": "https://github.com/es128/glob-parent",
30
"dependencies": {
31
- "is-glob": "^3.1.0"
+ "is-glob": "^3.1.0",
32
+ "path-dirname": "^1.0.0"
33
34
"devDependencies": {
35
"coveralls": "^2.11.2",
0 commit comments