Skip to content

Commit 57ba100

Browse files
committed
Merge pull request bcit-ci#2657 from DaveMC08/feature/fixes_2637
Fixes Issue bcit-ci#2637
2 parents 88f41df + 6d91785 commit 57ba100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ protected function _minify_script_style($output, $has_tags = FALSE)
847847
}
848848

849849
// Remove CSS comments
850-
$output = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!i', '', $output);
850+
$output = preg_replace('!/\*([^/][^*]*\*)*/(?!.+?["\'])!i', '', $output);
851851

852852
// Remove Javascript inline comments
853853
if ($has_tags === TRUE && strpos(strtolower($open_tag), 'script') !== FALSE)

0 commit comments

Comments
 (0)