MCPcopy
hub / github.com/compodoc/compodoc / normalizePatternList

Function normalizePatternList

src/app/cli/config-loader.ts:54–62  ·  view source on GitHub ↗
(patterns: unknown)

Source from the content-addressed store, hash-verified

52}
53
54export function normalizePatternList(patterns: unknown): string[] {
55 if (!patterns) {
56 return [];
57 }
58
59 const values = Array.isArray(patterns) ? patterns : String(patterns).split(',');
60
61 return values.map(pattern => String(pattern).trim()).filter(pattern => pattern.length > 0);
62}
63
64export function applyCliConfiguration(
65 mainData: MainDataInterface,

Callers 1

applyCliConfigurationFunction · 0.85

Calls 2

filterMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…