MCPcopy Create free account
hub / github.com/angular/dev-infra / getOrCreateGlob

Function getOrCreateGlob

ng-dev/pullapprove/utils.ts:17–24  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

15 * if available. Otherwise a new glob will be created and cached.
16 */
17export function getOrCreateGlob(pattern: string) {
18 if (patternCache.has(pattern)) {
19 return patternCache.get(pattern)!;
20 }
21 const glob = new Minimatch(pattern, {dot: false, nobrace: false});
22 patternCache.set(pattern, glob);
23 return glob;
24}

Callers 3

includeMethod · 0.85
excludeMethod · 0.85

Calls 3

hasMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected