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

Function parseBlockScalarHeader

plugins/plugin-eval/src/lib/frontmatter.js:50–61  ·  view source on GitHub ↗
(rawValue)

Source from the content-addressed store, hash-verified

48}
49
50function parseBlockScalarHeader(rawValue) {
51 const value = rawValue.trim();
52 if (!value) {
53 return null;
54 }
55 if (!value.startsWith(">") && !value.startsWith("|")) {
56 return null;
57 }
58 return {
59 style: value[0],
60 };
61}
62
63function foldBlockScalarLines(lines) {
64 let result = "";

Callers 1

parseBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected