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

Function nextMeaningfulIndex

plugins/plugin-eval/src/lib/frontmatter.js:39–48  ·  view source on GitHub ↗
(lines, startIndex)

Source from the content-addressed store, hash-verified

37}
38
39function nextMeaningfulIndex(lines, startIndex) {
40 for (let index = startIndex; index < lines.length; index += 1) {
41 const trimmed = lines[index].trim();
42 if (!trimmed || trimmed.startsWith("#")) {
43 continue;
44 }
45 return index;
46 }
47 return -1;
48}
49
50function parseBlockScalarHeader(rawValue) {
51 const value = rawValue.trim();

Callers 1

parseBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected