(filePath)
| 160 | } |
| 161 | |
| 162 | function isTextLike(filePath) { |
| 163 | const ext = path.extname(filePath).toLowerCase() |
| 164 | return ( |
| 165 | ext === '.ts' || |
| 166 | ext === '.tsx' || |
| 167 | ext === '.js' || |
| 168 | ext === '.jsx' || |
| 169 | ext === '.mjs' || |
| 170 | ext === '.cjs' || |
| 171 | ext === '.json' || |
| 172 | ext === '.md' || |
| 173 | ext === '.txt' |
| 174 | ) |
| 175 | } |
| 176 | |
| 177 | function extractInlineSource(text) { |
| 178 | const matches = Array.from( |