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

Function stripJsonStyleComments

cli/src/utils/theme-system.ts:182–183  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

180}
181
182const stripJsonStyleComments = (raw: string): string =>
183 raw.replace(/\/\*[\s\S]*?\*\//g, '').replace(/^\s*\/\/.*$/gm, '')
184
185const safeReadFile = (filePath: string): string | null => {
186 try {

Callers 2

extractZedThemeFunction · 0.85
detectZedThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected