MCPcopy Create free account
hub / github.com/openai/plugins / parseYamlDocument

Function parseYamlDocument

plugins/plugin-eval/src/lib/frontmatter.js:205–208  ·  view source on GitHub ↗
(yamlText)

Source from the content-addressed store, hash-verified

203}
204
205export function parseYamlDocument(yamlText) {
206 const normalized = yamlText.replace(/\r\n/g, "\n");
207 return parseBlock(normalized.split("\n"), 0, 0).value;
208}
209
210export function extractFrontmatter(markdown) {
211 const normalized = markdown.replace(/\r\n/g, "\n");

Callers 2

readInvocationPolicyFunction · 0.90
parseFrontmatterFunction · 0.85

Calls 1

parseBlockFunction · 0.85

Tested by

no test coverage detected