diff --git a/scripts/release/inline-resources.js b/scripts/release/inline-resources.js index 133ec2e6627a..697612ffb47a 100644 --- a/scripts/release/inline-resources.js +++ b/scripts/release/inline-resources.js @@ -62,7 +62,7 @@ for (let arg of process.argv.slice(2)) { * @return {string} The content with all templates inlined. */ function inlineTemplate(filePath, content) { - return content.replace(/templateUrl:\s*'([^']+\.html)'/g, function(m, templateUrl) { + return content.replace(/templateUrl:\s*'([^']+?\.html)'/g, function(m, templateUrl) { const templateFile = path.join(path.dirname(filePath), templateUrl); const templateContent = fs.readFileSync(templateFile, 'utf-8'); const shortenedTemplate = templateContent