MCPcopy
hub / github.com/vercel/next.js / hasExistingIndex

Function hasExistingIndex

packages/next-codemod/lib/agents-md.ts:313–315  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

311const END_MARKER = '<!-- NEXT-AGENTS-MD-END -->'
312
313function hasExistingIndex(content: string): boolean {
314 return content.includes(START_MARKER)
315}
316
317function wrapWithMarkers(content: string): string {
318 return `${START_MARKER}${content}${END_MARKER}`

Callers 1

injectIntoClaudeMdFunction · 0.85

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected