MCPcopy Create free account
hub / github.com/TruthHun/BookStack / matches

Function matches

static/vuejs/vue.js:4024–4032  ·  view source on GitHub ↗
(pattern, name)

Source from the content-addressed store, hash-verified

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

Callers 1

vue.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected