lodash: Fix build. [jddalton]

Former-commit-id: 71e00490e203ad60e51293f25a7a20e0ed305fef
This commit is contained in:
John-David Dalton
2012-04-22 14:16:27 -04:00
parent c3b124660e
commit 3f6b2d6e75
3 changed files with 4 additions and 2 deletions

View File

@@ -154,7 +154,7 @@
// add `true` and `false` arguments to be minified
if (/function iterationFactory/.test(snippet)) {
result = result
.replace(/(Function\('[\w\s,]+)undefined/, '$1true,false,undefined')
.replace(/(Function\('[\s\S]+?)undefined/, '$1true,false,undefined')
.replace(/\)\([^)]+/, '$&,true,false');
// replace with modified snippet early and clip snippet