MCPcopy Create free account
hub / github.com/massCodeIO/massCode / normalizeLexer

Function normalizeLexer

src/main/import/snippets/snippetsLab.ts:129–135  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

127}
128
129function normalizeLexer(value: unknown): string {
130 if (typeof value !== 'string' || !value.trim()) {
131 return 'plain_text'
132 }
133
134 return LANGUAGE_BY_LEXER[value] || 'plain_text'
135}
136
137function getDescription(record: SnippetsLabRecord): string | null {
138 const descriptionParts: string[] = []

Callers 1

parseSnippetsLabFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected