From 1d036e67475e460876ae9b8fe60836bef3a8803c Mon Sep 17 00:00:00 2001 From: "codeflash-ai[bot]" <148906541+codeflash-ai[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 23:43:14 +0000 Subject: [PATCH] Optimize maybe_wrap_in_iframe The optimization introduces a **fast regex pre-filter** to avoid expensive HTML parsing in the common case where HTML doesn't contain inline scripts. **What was optimized:** - Added `_SCRIPT_INLINE_RE` regex pattern that matches `