MCPcopy Create free account
hub / github.com/TencentCloud/Octop / isShellLanguage

Function isShellLanguage

dashboard/src/utils/shellCodeBlock.ts:11–13  ·  view source on GitHub ↗
(lang: string)

Source from the content-addressed store, hash-verified

9]);
10
11export function isShellLanguage(lang: string): boolean {
12 return SHELL_LANGS.has(lang.toLowerCase());
13}
14
15/** Extract shell code blocks from assistant markdown (in document order). */
16export function extractBashBlocks(markdown: string): string[] {

Callers 2

codeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected