Skip to content

Commit dc80fa9

Browse files
es128phated
authored andcommitted
revert: feat: make regex test strings smaller
This reverts commit cd83220.
1 parent bf4aa81 commit dc80fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ var path = require('path');
44
var isglob = require('is-glob');
55

66
module.exports = function globParent(str) {
7-
while (isglob(path.basename(str))) str = path.dirname(str);
7+
while (isglob(str)) str = path.dirname(str);
88
return str;
99
};

0 commit comments

Comments
 (0)