(language: string)
| 115 | } |
| 116 | |
| 117 | function isExecutableBlockLanguage(language: string): boolean { |
| 118 | const normalized = language.trim().toLowerCase() |
| 119 | return ( |
| 120 | normalized === '' || |
| 121 | normalized === 'bash' || |
| 122 | normalized === 'sh' || |
| 123 | normalized === 'shell' || |
| 124 | normalized === 'zsh' || |
| 125 | normalized === 'fish' |
| 126 | ) |
| 127 | } |
| 128 | |
| 129 | function extractExecutableBlocks(section: Section): ScriptBlock[] { |
| 130 | const lines = section.content.split(/\r?\n/) |
no outgoing calls
no test coverage detected