(pattern, name)
| 4024 | } |
| 4025 | |
| 4026 | function matches (pattern, name) { |
| 4027 | if (typeof pattern === 'string') { |
| 4028 | return pattern.split(',').indexOf(name) > -1 |
| 4029 | } else if (pattern instanceof RegExp) { |
| 4030 | return pattern.test(name) |
| 4031 | } |
| 4032 | /* istanbul ignore next */ |
| 4033 | return false |
| 4034 | } |
| 4035 | |
| 4036 | function pruneCache (cache, filter) { |
| 4037 | for (var key in cache) { |