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

Function matches

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

Source from the content-addressed store, hash-verified

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

Callers 1

vue.common.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected