Make_string was missing \v and wasnt reversing vertical tabs even though read_escaped...
authorstartswithaj <jake.mc@icloud.com>
Thu, 15 Oct 2015 06:50:53 +0000 (16:50 +1000)
committerstartswithaj <jake.mc@icloud.com>
Thu, 15 Oct 2015 07:42:16 +0000 (17:42 +1000)
lib/output.js

index a3b8f1a..933a4ce 100644 (file)
@@ -88,13 +88,14 @@ function OutputStream(options) {
 
     function make_string(str, quote) {
         var dq = 0, sq = 0;
-        str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0\ufeff]/g, function(s){
+        str = str.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g, function(s){
             switch (s) {
               case "\\": return "\\\\";
               case "\b": return "\\b";
               case "\f": return "\\f";
               case "\n": return "\\n";
               case "\r": return "\\r";
+              case "\v": return "\\v";
               case "\u2028": return "\\u2028";
               case "\u2029": return "\\u2029";
               case '"': ++dq; return '"';