Ensure build tweaks are applied when new lines break up specific patterns.

Former-commit-id: 085a837521750457db9f20f3701984cba24a4f4f
This commit is contained in:
John-David Dalton
2012-08-14 02:36:55 -07:00
parent ebd16105f2
commit 47b51c22fa
2 changed files with 2 additions and 2 deletions

View File

@@ -691,7 +691,7 @@
*/
function writeFile(source, filename) {
// correct overly aggressive Closure Compiler minification
source = source.replace('prototype={valueOf:1}', 'prototype={valueOf:1,y:1}');
source = source.replace(/prototype\s*=\s*{\s*valueOf\s*:\s*1\s*}/, 'prototype={valueOf:1,y:1}');
// re-remove "use strict" added by the minifier
if (!useStrict) {