(pattern, name)
| 4018 | } |
| 4019 | |
| 4020 | function matches (pattern, name) { |
| 4021 | if (typeof pattern === 'string') { |
| 4022 | return pattern.split(',').indexOf(name) > -1 |
| 4023 | } else if (pattern instanceof RegExp) { |
| 4024 | return pattern.test(name) |
| 4025 | } |
| 4026 | /* istanbul ignore next */ |
| 4027 | return false |
| 4028 | } |
| 4029 | |
| 4030 | function pruneCache (cache, filter) { |
| 4031 | for (var key in cache) { |