Fix existing manifest regex test

This commit is contained in:
Chip Lay 2015-06-10 09:27:38 -04:00
parent 73a61a94e9
commit 82ef236cb1
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ HtmlWebpackPlugin.prototype.injectAssetsIntoHtml = function(html, templateParams
if (assets.manifest) {
html = html.replace(/(<html.*)(>)/i, function (match, start, end) {
// Append the manifest only if no manifest was specified
if (match.test(/\smanifest\s*=/)) {
if (/\smanifest\s*=/.test(match)) {
return match;
}
return start + ' manifest="' + assets.manifest + '"' + end;