MCPcopy Index your code
hub / github.com/wandb/openui / stripCodeblocks

Function stripCodeblocks

frontend/src/components/CodeViewer.tsx:71–73  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

69}
70
71function stripCodeblocks(code: string) {
72 return code.replaceAll(/```(.*)\n?/g, '')
73}
74
75export default function CodeViewer({ id, code }: ViewerProps) {
76 const item = useAtomValue(historyAtomFamily({ id }))

Callers 1

CodeViewerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected