[Pkg-javascript-commits] [uglifyjs] 46/190: Make_string was missing \v and wasnt reversing vertical tabs even though read_escaped_char coverts them

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 6b2861e0861968f1f7acae5cf964cc0e6244b0be
Author: startswithaj <jake.mc at icloud.com>
Date:   Thu Oct 15 16:50:53 2015 +1000

    Make_string was missing \v and wasnt reversing vertical tabs even though read_escaped_char coverts them
---
 lib/output.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/output.js b/lib/output.js
index a3b8f1a..933a4ce 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -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 '"';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list