MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / extractEntries

Function extractEntries

scripts/check-awesome-list.mjs:146–155  ·  view source on GitHub ↗
(readme)

Source from the content-addressed store, hash-verified

144}
145
146function extractEntries(readme) {
147 return readme
148 .split(/\r?\n/)
149 .map((line, index) => ({ line, lineNumber: index + 1 }))
150 .map(({ line, lineNumber }) => {
151 const match = line.match(/^\s*-\s+\[[^\]]+\]\([^)]+\)\s+-\s+(.+)$/);
152 return match ? { lineNumber, description: match[1].trim() } : null;
153 })
154 .filter(Boolean);
155}
156
157function checkRuleLinks(readme) {
158 if (/\]\((\.\/)?rules\//.test(readme)) {

Callers 1

checkEntryDescriptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected