Skip to content
Browse files

Only a subset of whitespace characters is problematic after `</script…

  • Loading branch information...
1 parent 8207ba9 commit 8b2afcbf78e1350fb997398f02b79e8e8970ccd2 @mathiasbynens mathiasbynens committed Jul 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/process.js
View
2 lib/process.js 100755 → 100644
@@ -1225,7 +1225,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([>\s])/gi, "<\\/script$1");
+ ret = ret.replace(/<\x2fscript([>\t\n\f\r ])/gi, "<\\/script$1");
return ret;
};

0 comments on commit 8b2afcb

Please sign in to comment.
Something went wrong with that request. Please try again.