Skip to content

Commit

Permalink
[-] FO : CCC do not withdraw \t+ and \s+
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Nov 27, 2013
1 parent cc3a137 commit 82022c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Media.php
Expand Up @@ -69,7 +69,7 @@ public static function minifyHTML($html_content)
{
//set an alphabetical order for args
$html_content = preg_replace_callback(
'/(<[a-zA-Z0-9]+)((\s\t?[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']\s\t?)*)>/',
'/(<[a-zA-Z0-9]+)((\s*[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']\s*)*)>/',
array('Media', 'minifyHTMLpregCallback'),
$html_content,
Media::getBackTrackLimit());
Expand Down

0 comments on commit 82022c3

Please sign in to comment.