remove em dashes

This commit is contained in:
2026-04-09 21:07:28 +04:00
parent 5f20b41e91
commit 79ba63d86b
31 changed files with 154 additions and 154 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ const StatusPageBody = t.Object({
}))),
});
// Strip @import and expression() from custom CSS basic sanity, not a full
// Strip @import and expression() from custom CSS - basic sanity, not a full
// parser. The CSS still runs in the visitor's browser; this just blocks the
// most common smuggling vectors.
function sanitizeCss(css: string | null | undefined): string | null {
@@ -63,7 +63,7 @@ async function replaceGroupsAndMonitors(
await sql`DELETE FROM status_page_groups WHERE status_page_id = ${pageId}`;
}
// Single bulk INSERT instead of one round-trip per group. The RETURNING set
// comes back in INSERT order, which equals the array order that lets us
// comes back in INSERT order, which equals the array order - that lets us
// map index → id without a follow-up SELECT. Mirrors the bulk insert pattern
// used by the monitors block right below.
const groupIds: string[] = [];