MCPcopy Create free account
hub / github.com/github/awesome-copilot / parseChecklist

Function parseChecklist

eng/external-plugin-intake.mjs:119–128  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

117}
118
119function parseChecklist(value) {
120 const checked = new Set();
121 const normalized = normalizeMultilineText(value);
122
123 for (const match of normalized.matchAll(/^- \[(x|X)\] (.+)$/gm)) {
124 checked.add(match[2].trim());
125 }
126
127 return checked;
128}
129
130function readLocalPluginNames() {
131 if (!fs.existsSync(PLUGINS_DIR)) {

Callers 1

Calls 1

normalizeMultilineTextFunction · 0.85

Tested by

no test coverage detected