1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

Gelato: Minify fixes

This commit is contained in:
Awilum
2013-03-16 13:32:47 +02:00
parent 60929b17bf
commit 6b9077ef35

View File

@@ -30,7 +30,7 @@ class MinifyHTML
public static function process($html)
{
// Remove HTML comments (not containing IE conditional comments).
$html = preg_replace_callback('/<!--([\\s\\S]*?)-->/', 'self::_comments', $html);
$html = preg_replace_callback('/<!--([\\s\\S]*?)-->/', 'MinifyHTML::_comments', $html);
// Trim each line.
$html = preg_replace('/^\\s+|\\s+$/m', '', $html);