source:
frontend/node_modules/test-exclude/is-outside-dir-win32.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 239 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict'; |
| 2 | ||
| 3 | const path = require('path'); | |
| 4 | const minimatch = require('minimatch'); | |
| 5 | ||
| 6 | const dot = { dot: true }; | |
| 7 | ||
| 8 | module.exports = function(dir, filename) { | |
| 9 | return !minimatch(path.resolve(dir, filename), path.join(dir, '**'), dot); | |
| 10 | }; |
Note:
See TracBrowser
for help on using the repository browser.
