Skip to content

Commit

Permalink
escaped slash character in regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
mishoo committed Oct 22, 2011
1 parent 8459929 commit 4f97733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/process.js
Expand Up @@ -1419,7 +1419,7 @@ function gen_code(ast, options) {
function encode_string(str) {
var ret = make_string(str, options.ascii_only);
if (options.inline_script)
ret = ret.replace(/<\x2fscript([>/\t\n\f\r ])/gi, "<\\/script$1");
ret = ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi, "<\\/script$1");
return ret;
};

Expand Down

0 comments on commit 4f97733

Please sign in to comment.