We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf4aa81 commit dc80fa9Copy full SHA for dc80fa9
index.js
@@ -4,6 +4,6 @@ var path = require('path');
4
var isglob = require('is-glob');
5
6
module.exports = function globParent(str) {
7
- while (isglob(path.basename(str))) str = path.dirname(str);
+ while (isglob(str)) str = path.dirname(str);
8
return str;
9
};
0 commit comments