From 3f6b2d6e759316fe93e22b87090c362648e650e3 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 22 Apr 2012 14:16:27 -0400 Subject: [PATCH] lodash: Fix build. [jddalton] Former-commit-id: 71e00490e203ad60e51293f25a7a20e0ed305fef --- Makefile | 2 ++ build/pre-compile.js | 2 +- lodash.min.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 332eb2ba2..e965bd291 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ core: --js ${LODASH_TMP} \ --js_output_file ${LODASH_COMPILER} ${POST_COMPILER} ${LODASH_COMPILER} + gzip -9f -c ${LODASH_COMPILER} > ${LODASH_COMPILER}.gz ${UGLIFY} \ --unsafe \ @@ -33,5 +34,6 @@ core: -o ${LODASH_UGLIFY} \ ${LODASH_TMP} ${POST_COMPILER} ${LODASH_UGLIFY} + gzip -9f -c ${LODASH_UGLIFY} > ${LODASH_UGLIFY}.gz rm -f ${LODASH_TMP} diff --git a/build/pre-compile.js b/build/pre-compile.js index e87f4061c..2216f29ab 100644 --- a/build/pre-compile.js +++ b/build/pre-compile.js @@ -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 diff --git a/lodash.min.js b/lodash.min.js index 9e30c262f..6913dc38c 100644 --- a/lodash.min.js +++ b/lodash.min.js @@ -2,7 +2,7 @@ Lo-Dash 0.1.0 github.com/bestiejs/lodash/blob/master/LICENSE.txt Underscore.js 1.3.3 github.com/documentcloud/underscore/blob/master/LICENSE */ -;(function(s,j){"use strict";var n=!0,o=!1;function E(a){return"[object Arguments]"==k.call(a)}function g(a){return new aa(a)}function aa(a){this.o=a}function h(){for(var a,b=-1,c={},d={},f={},e=["d","j","g","a"];++b>1;c(a[e])a.length&&(b=n);z(c,function(c,e,i){if(b?ha(c)!==e||!c.length:0>H(c,e))c.push(e),d.push(a[i]);