MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / removeCommentSyntax

Method removeCommentSyntax

scripts/docs/lib/comments.ts:63–68  ·  view source on GitHub ↗
(commentText: string)

Source from the content-addressed store, hash-verified

61 }
62
63 static removeCommentSyntax(commentText: string): string {
64 return commentText
65 .replace(/\/\*\*|\*\/|\*|\/\* ?/gm, "")
66 .replace(/^ /gm, "")
67 .trim();
68 }
69
70 static getFirstCommentBlock(sourceFile: ts.SourceFile): string | null {
71 for (const statement of sourceFile.statements) {

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected