lodash: Cleanup template. [jddalton]

Former-commit-id: 286af73ea3a4d798afd4baa01e586ada0305e66b
This commit is contained in:
John-David Dalton
2012-05-03 10:01:53 -04:00
parent 312f0310dc
commit 2f908870e7
5 changed files with 252 additions and 193 deletions

View File

@@ -113,7 +113,7 @@
// remove whitespace from string literals
source = source.replace(/'(?:(?=(\\?))\1.)*?'/g, function(string) {
return string.replace(/\[object |else if|function | in |return\s+[\w']|throw |use strict|var |['|]\\n[|']|\\n|\s+/g, function(match) {
return string.replace(/\[object |else if|function | in |return\s+[\w']|throw |use strict|var |'\\n'|\\\\n|\\n|\s+/g, function(match) {
return match == false || match == '\\n' ? '' : match;
});
});