(text: string)
| 192 | .replace(/…/g, "...") |
| 193 | .replace(/ /g, " ") |
| 194 | const splitBom = (text: string) => |
| 195 | text.startsWith("\uFEFF") ? { bom: true, text: text.slice(1) } : { bom: false, text } |
| 196 | const stripHeredoc = (input: string) => |
| 197 | input.match(/^(?:cat\s+)?<<['"]?(\w+)['"]?\s*\n([\s\S]*?)\n\1\s*$/)?.[2] ?? input |