MCPcopy Create free account
hub / github.com/bergside/typeui / parseMetaField

Function parseMetaField

src/prompts/designSystem.ts:85–89  ·  view source on GitHub ↗
(meta: string, label: string)

Source from the content-addressed store, hash-verified

83}
84
85function parseMetaField(meta: string, label: string): string | undefined {
86 const pattern = new RegExp(`${label}=([^|]+)`, "i");
87 const match = meta.match(pattern);
88 return match?.[1]?.trim();
89}
90
91function matchPresetDefaults(current: string, presets: string[]): { selected: string[]; custom: string[] } {
92 const currentValues = splitKeywords(current);

Callers 2

promptTypographyGuidanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected