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

Function matches

static/vuejs/vue.runtime.common.js:4026–4034  ·  view source on GitHub ↗
(pattern, name)

Source from the content-addressed store, hash-verified

4024}
4025
4026function 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
4036function pruneCache (cache, filter) {
4037 for (var key in cache) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected