MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / normalizeText

Function normalizeText

packages/mission-control/src/source.ts:107–113  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

105}
106
107function normalizeText(value: string | null | undefined): string | null {
108 if (typeof value !== 'string') {
109 return null;
110 }
111 const trimmed = value.trim();
112 return trimmed.length > 0 ? trimmed : null;
113}
114
115function normalizeStringList(value: string[] | null | undefined): string[] {
116 if (!Array.isArray(value)) {

Callers 4

normalizeRequiredTextFunction · 0.70
normalizeStringListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected