MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / hasIncompleteCodeFence

Function hasIncompleteCodeFence

cli/src/utils/markdown-renderer.tsx:1031–1038  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

1029}
1030
1031export function hasIncompleteCodeFence(content: string): boolean {
1032 let fenceCount = 0
1033 const fenceRegex = /```/g
1034 while (fenceRegex.exec(content)) {
1035 fenceCount += 1
1036 }
1037 return fenceCount % 2 === 1
1038}
1039
1040const mergeStreamingSegments = (segments: ReactNode[]): ReactNode => {
1041 if (segments.length === 0) {

Callers 1

renderStreamingMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected