(record: DigestRecord)
| 458 | )}</a>`; |
| 459 | } |
| 460 | return `${prefix}${htmlEscape(record.text)}`; |
| 461 | } |
| 462 | |
| 463 | function buildDigestLines(records: DigestRecord[]): string[] { |
| 464 | const lines: string[] = []; |
| 465 | let currentDay = ""; |
| 466 | |
| 467 | for (const record of records) { |
| 468 | if (record.day !== currentDay) { |
| 469 | if (lines.length > 0) lines.push(""); |
| 470 | currentDay = record.day; |
| 471 | lines.push(`📅 <b>${htmlEscape(record.day)}</b>`); |
no test coverage detected