MCPcopy Index your code
hub / github.com/Waishnav/devspace / parseStringList

Function parseStringList

src/config.ts:117–124  ·  view source on GitHub ↗
(value: string | undefined, fallback: string[])

Source from the content-addressed store, hash-verified

115}
116
117function parseStringList(value: string | undefined, fallback: string[]): string[] {
118 const entries = value
119 ?.split(",")
120 .map((entry) => entry.trim())
121 .filter(Boolean);
122
123 return entries && entries.length > 0 ? entries : fallback;
124}
125
126function parsePositiveInteger(value: string | undefined, fallback: number, name: string): number {
127 if (!value) return fallback;

Callers 1

parseOAuthConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected