From 748790a895e6c500d8ddf02339fc41d068d0c11f Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Tue, 23 Jun 2026 01:50:21 -0300 Subject: [PATCH] fix(release-green): complete CodeQL sanitization + rebaseline complexity drift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix(quota): handle unterminated HTML comments in opencodeOllamaUsage SSR reset-time parsing — the `(?:-->|$)` arm consumes a trailing "", so no partial " form because an unclosed comment could still leave " / hydration - // markers) — a complete removal, not just the two literal markers, so no - // partial "/g, "").replace(/Resets?\s*in\s*/i, "") + // Strip any HTML comment, INCLUDING an unterminated one (React SSR emits + // / hydration markers). The `(?:-->|$)` arm consumes a + // trailing "" too, so no partial "|$)/g, "").replace(/Resets?\s*in\s*/i, "") ); if (resetInSec === null || !Number.isFinite(resetInSec)) continue; const window = {