Conditions | 5 |
Paths | 8 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* |
||
11 | const matchFile = function (options, path) { |
||
12 | if (typeof options.paths === 'string') { |
||
13 | options.paths = [options.paths] |
||
14 | } |
||
15 | |||
16 | for (var i in options.paths) { |
||
17 | if (!options.paths.hasOwnProperty(i)) { |
||
18 | continue |
||
19 | } |
||
20 | if (minimatch(path, options.paths[i])) { |
||
21 | return true |
||
22 | } |
||
23 | } |
||
24 | |||
25 | return false |
||
26 | } |
||
27 | |||
41 |