MCPcopy Create free account
hub / github.com/chhoumann/quickadd / parsePipeKeyValue

Function parsePipeKeyValue

src/utils/pipeSyntax.ts:11–22  ·  view source on GitHub ↗
(
	part: string,
)

Source from the content-addressed store, hash-verified

9}
10
11export function parsePipeKeyValue(
12 part: string,
13): { key: string; value: string } | null {
14 const colonIndex = part.indexOf(":");
15 if (colonIndex === -1) return null;
16
17 const key = part.slice(0, colonIndex).trim().toLowerCase();
18 if (!key) return null;
19
20 const value = part.slice(colonIndex + 1).trim();
21 return { key, value };
22}
23
24export function parseBooleanFlag(value?: string): boolean {
25 if (!value) return true;

Callers 8

hasRecognizedOptionFunction · 0.90
hasNumericTypeFunction · 0.90
parseOptionsFunction · 0.90
parseDateSnapSegmentFunction · 0.90
parseMethod · 0.90
parseVDateOptionsFunction · 0.90
parseFileTokenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected