| Conditions | 5 |
| Paths | 8 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict' |
||
| 20 | const matchFile = function (options, path) { |
||
| 21 | if (typeof options.paths === 'string') { |
||
| 22 | options.paths = [options.paths] |
||
| 23 | } |
||
| 24 | |||
| 25 | for (var i in options.paths) { |
||
| 26 | if (!options.paths.hasOwnProperty(i)) { |
||
| 27 | continue |
||
| 28 | } |
||
| 29 | if (minimatch(path, options.paths[i])) { |
||
| 30 | return true |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | return false |
||
| 35 | } |
||
| 36 | |||
| 51 |