Skip to content
Snippets Groups Projects
Commit bfffc144 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix corruption of some <link> tags on deploy

parent ee0bc22a
No related branches found
No related tags found
No related merge requests found
......@@ -106,10 +106,10 @@ class Deployment extends Unpacker {
return parent::copyFile($src, $dest);
$source = file_get_contents($src);
$source = preg_replace(':<script(.*) src="(.*).js"></script>:',
$source = preg_replace(':<script(.*) src="([^"]+)\.js"></script>:',
'<script$1 src="$2.js?'.$short.'"></script>',
$source);
$source = preg_replace(':<link(.*) href="(.*).css"([^/>]*)/?>:', # <?php
$source = preg_replace(':<link(.*) href="([^"]+)\.css"([^/>]*)/?>:', # <?php
'<link$1 href="$2.css?'.$short.'"$3/>',
$source);
// Set THIS_VERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment