(text)
| 390 | } |
| 391 | |
| 392 | function looksLikeShell(text) { |
| 393 | return /(^|\n)\s*(\$ |(?:cd|ls|pwd|cat|rg|sed|find|git|npm|pnpm|yarn|uv|python|python3|bash|sh|chmod|cp|mv|rm)\b)/m.test(String(text || '')); |
| 394 | } |
| 395 | |
| 396 | function inferCodeLanguage(text, fallback = '') { |
| 397 | const normalizedFallback = normalizeCodeLanguage(fallback); |
no outgoing calls
no test coverage detected