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

Function matches

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

Source from the content-addressed store, hash-verified

4018}
4019
4020function 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
4030function pruneCache (cache, filter) {
4031 for (var key in cache) {

Callers 1

vue.runtime.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected