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 f27adc6 commit d7cf3d4Copy full SHA for d7cf3d4
1 file changed
index.js
@@ -23,7 +23,7 @@ module.exports = (pattern, options) => {
23
// If the path leaves the current working directory, then we need to
24
// resolve the absolute path so that the path can be properly matched
25
// by minimatch (via multimatch)
26
- if (relPath.indexOf('../') === 0) {
+ if (/^\.\.[\\/]/.test(relPath)) {
27
relPath = path.resolve(relPath);
28
}
29
0 commit comments