From a887cde9f295a9ac89c8f09417db5901b655dfba Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 27 Oct 2015 09:05:21 -0700 Subject: [PATCH] fixes #845: \v escaping should be restricted to "screw_ie8" mode --- lib/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/output.js b/lib/output.js index 7d1e5dbb..5d75e703 100644 --- a/lib/output.js +++ b/lib/output.js @@ -95,7 +95,7 @@ function OutputStream(options) { case "\f": return "\\f"; case "\n": return "\\n"; case "\r": return "\\r"; - case "\v": return "\\v"; + case "\x0B": return output.option("screw_ie8") ? "\\v" : "\\x0B"; case "\u2028": return "\\u2028"; case "\u2029": return "\\u2029"; case '"': ++dq; return '"'; -- 2.34.1