From ae7c8861793974c008e4d60c3704431e7f5f5110 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 02:50:16 +0000 Subject: [PATCH] Add detailed comment explaining URL preservation regex pattern --- src/templates/AssetMinifier.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/templates/AssetMinifier.php b/src/templates/AssetMinifier.php index f74ff32..6c4dcfa 100644 --- a/src/templates/AssetMinifier.php +++ b/src/templates/AssetMinifier.php @@ -71,7 +71,10 @@ class AssetMinifier public static function minifyJS(string $js): string { // Remove single-line comments but preserve URLs (https://, http://) - // Only remove comments that start at the beginning of a line or after whitespace + // The negative lookbehind (?