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

Function countCodeFences

plugins/plugin-eval/src/evaluators/skill.js:19–21  ·  view source on GitHub ↗
(markdown)

Source from the content-addressed store, hash-verified

17]);
18
19function countCodeFences(markdown) {
20 return (markdown.match(/```/g) || []).length / 2;
21}
22
23function findRelativeLinks(markdown) {
24 return [...markdown.matchAll(/\[[^\]]+\]\(([^)]+)\)/g)]

Callers 1

evaluateSkillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected