(value: unknown)
| 127 | } |
| 128 | |
| 129 | function 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 | |
| 137 | function getDescription(record: SnippetsLabRecord): string | null { |
| 138 | const descriptionParts: string[] = [] |
no outgoing calls
no test coverage detected