diff --git a/build/minify.js b/build/minify.js index 9cce7d13f..fbd749412 100755 --- a/build/minify.js +++ b/build/minify.js @@ -330,7 +330,7 @@ // restrict lines to 500 characters for consistency with the Closure Compiler var stream = uglifyJS.OutputStream({ 'ascii_only': true, - 'comments': /\* *@license/, + 'comments': /@cc_on|@license|@preserve/i, 'max_line_len': 500, }); diff --git a/vendor/benchmark.js/benchmark.js b/vendor/benchmark.js/benchmark.js index fe5ff3db0..2a39cb4fe 100644 --- a/vendor/benchmark.js/benchmark.js +++ b/vendor/benchmark.js/benchmark.js @@ -1648,7 +1648,10 @@ function interpolate(string, object) { forOwn(object, function(value, key) { // escape regexp special characters in `key` - string = string.replace(RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'), value); + string = string.replace( + RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'), + value.replace(/\$/g, '$$$$') + ); }); return string; }