aboutsummaryrefslogtreecommitdiff
path: root/node_modules/test-exclude/is-outside-dir-win32.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/test-exclude/is-outside-dir-win32.js')
-rw-r--r--node_modules/test-exclude/is-outside-dir-win32.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/test-exclude/is-outside-dir-win32.js b/node_modules/test-exclude/is-outside-dir-win32.js
new file mode 100644
index 0000000..05e34a9
--- /dev/null
+++ b/node_modules/test-exclude/is-outside-dir-win32.js
@@ -0,0 +1,10 @@
+'use strict';
+
+const path = require('path');
+const minimatch = require('minimatch');
+
+const dot = { dot: true };
+
+module.exports = function(dir, filename) {
+ return !minimatch(path.resolve(dir, filename), path.join(dir, '**'), dot);
+};