diff --git a/node_modules/connect-architect/connect.render.ejs/render-ejs.js b/node_modules/connect-architect/connect.render.ejs/render-ejs.js index 708745fe..9a544416 100644 --- a/node_modules/connect-architect/connect.render.ejs/render-ejs.js +++ b/node_modules/connect-architect/connect.render.ejs/render-ejs.js @@ -7,7 +7,7 @@ module.exports = function(options, imports, register) { imports["connect.render"].registerEngine("ejs", createView); ejs.filters.JSONToJS = function(obj, indent) { - return JSON.stringify(obj, null, indent).replace(/<\/?script|[\u2028\u2029]/g, function(a) { + return JSON.stringify(obj, null, indent).replace(/<\/?script|[\u2028\u2029]/ig, function(a) { var h = a.charCodeAt(0).toString(16); return (h.length == 2 ? "\\x" : "\\u") + h + a.substr(1); });