MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / isCodeFile

Function isCodeFile

src/components/FilePreview.tsx:53–71  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

51}
52
53function isCodeFile(ext: string): boolean {
54 return [
55 "ts",
56 "tsx",
57 "js",
58 "jsx",
59 "json",
60 "py",
61 "css",
62 "html",
63 "yaml",
64 "yml",
65 "sh",
66 "bash",
67 "sql",
68 "xml",
69 "toml",
70 ].includes(ext);
71}
72
73// Simple markdown renderer
74function renderMarkdown(text: string): string {

Callers 1

FilePreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected