(source: string)
| 57 | * lines cannot encode a route, so dropping them loses no signal. |
| 58 | */ |
| 59 | const routeContent = (source: string): string => |
| 60 | source |
| 61 | .split("\n") |
| 62 | .filter((line) => line.trim() !== "") |
| 63 | .join("\n"); |
| 64 | |
| 65 | // Snapshot the committed content so a failed run leaves the checkout exactly as |
| 66 | // it found it — this script must be safe to run on a dirty working tree. |