From bb553b8a6a875ddfa7cfe79479ba5c58958c57eb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 25 Aug 2012 00:56:00 -0700 Subject: [PATCH] Update whitespace removal for `delete` operators in pre-compile.js. Former-commit-id: 8dddeed54f8f13268f777d829ba52363706b9f4a --- build/pre-compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pre-compile.js b/build/pre-compile.js index 1e315179c..aa65069ad 100644 --- a/build/pre-compile.js +++ b/build/pre-compile.js @@ -277,7 +277,7 @@ // remove whitespace from string literals source = source.replace(/'(?:(?=(\\?))\1.)*?'/g, function(string) { // avoids removing the '\n' of the `stringEscapes` object - return string.replace(/\[object |else if|function | in |return\s+[\w']|throw |typeof |use strict|var |@ |'\\n'|\\\\n|\\n|\s+/g, function(match) { + return string.replace(/\[object |delete |else if|function | in |return\s+[\w']|throw |typeof |use strict|var |@ |'\\n'|\\\\n|\\n|\s+/g, function(match) { return match == false || match == '\\n' ? '' : match; }); });