Skip to content

Commit

Permalink
Merge pull request #2 from loopion/patch-1
Browse files Browse the repository at this point in the history
Update ParamonovavSpressHtmlCompress.php
  • Loading branch information
paramonovav committed Apr 6, 2016
2 parents 04abb52 + 9979f10 commit 6326c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ParamonovavSpressHtmlCompress.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function onAfterRenderPage(RenderEvent $event)
{
$id = $event-> getId();

if (in_array($id, $this-> html_compress_exclude) || preg_match('/(.*)?\.(jpe?g|png|gif|ico|svg|psd|tiff|webm|mov|avi|mkv)$/i', $id))
if (in_array($id, $this-> html_compress_exclude) || preg_match('/(.*)?\.(jpe?g|png|gif|ico|svg|psd|tiff|webm|mov|avi|mkv|mp4)$/i', $id))
{
return;
}
Expand All @@ -52,4 +52,4 @@ public function onAfterRenderPage(RenderEvent $event)

$event-> setContent( \WyriHaximus\HtmlCompress\Factory::construct()-> compress( $event-> getContent() ) );
}
}
}

0 comments on commit 6326c3a

Please sign in to comment.