(value: string, mode: "strip" | "clip" | "keep")
| 280 | } |
| 281 | |
| 282 | function applyChomp(value: string, mode: "strip" | "clip" | "keep"): string { |
| 283 | if (mode === "keep") { |
| 284 | return value; |
| 285 | } |
| 286 | |
| 287 | if (mode === "strip") { |
| 288 | return value.replace(/\n+$/g, ""); |
| 289 | } |
| 290 | |
| 291 | return value.replace(/\n*$/g, ""); |
| 292 | } |
| 293 | |
| 294 | function stripWrappingQuotes(value: string): string { |
| 295 | if ( |