Skip to content

Commit

Permalink
Work properly when content is minified.
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Oct 11, 2019
1 parent 22092ae commit b6b90be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/PageConfigRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function afterRenderAssets(
return $result;
}

preg_match_all('/<link.*rel="preload".*\/>/', $result, $links);
preg_match_all('/<link.*rel="preload".*\/>/U', $result, $links);

foreach ($links[0] as $link) {
if (strpos($link, '.woff') === false ||
Expand Down

0 comments on commit b6b90be

Please sign in to comment.