(text)
| 547 | } |
| 548 | |
| 549 | function isSoft404(text) { |
| 550 | const lower = text.toLowerCase(); |
| 551 | return soft404Indicators.some(i => lower.includes(i.toLowerCase())); |
| 552 | } |
| 553 | |
| 554 | function truncateForStorage(text, max = 5000) { |
| 555 | return text.length <= max ? text : text.substring(0, max) + '\n... [truncated]'; |
no outgoing calls
no test coverage detected