diff --git a/replays/build b/replays/build index e60cbc42f..b58d8a99e 100755 --- a/replays/build +++ b/replays/build @@ -15,7 +15,8 @@ function updateIndex() { // add hashes to js and css files process.stdout.write("Updating hashes... "); - indexContents = indexContents.replace(/(src|href)="\/(.*?)(\?[a-z0-9]*?)?"/g, runReplace); + // Check for ]+?src|]+?href|]+?src)="\/(.*?)(\?[a-z0-9]*?)?"/g, runReplace); console.log("DONE"); process.stdout.write("Writing new `wrapper.inc.php` file... ");