MCPcopy Create free account
hub / github.com/chhoumann/MetaEdit / parseInline

Function parseInline

src/parser.test.ts:22–25  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

20// Inline parsing is pure: drive it directly with a string so the many edge
21// cases read clearly.
22const parseInline = (content: string): Array<{key: string, content: unknown}> =>
23 new MetaEditParser({} as any)
24 .parseInlineContent(content)
25 .map(({key, content: value}) => ({key, content: value}));
26
27const replaceInline = (line: string, key: string, value: string): string =>
28 new MetaEditParser({} as any).replaceInlineFieldValue(line, key, value);

Callers 1

parser.test.tsFile · 0.85

Calls 1

parseInlineContentMethod · 0.80

Tested by

no test coverage detected