remove em dashes
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user