MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / formatDigestLine

Function formatDigestLine

biko/biko.ts:460–468  ·  view source on GitHub ↗
(record: DigestRecord)

Source from the content-addressed store, hash-verified

458 )}</a>`;
459 }
460 return `${prefix}${htmlEscape(record.text)}`;
461}
462
463function 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>`);

Callers 1

buildDigestLinesFunction · 0.85

Calls 1

htmlEscapeFunction · 0.70

Tested by

no test coverage detected