From b03c2b3b8f53dfce38b1f793e2da645cc86d8416 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 20 May 2012 20:37:13 -0400 Subject: [PATCH] Make custom build regexp less picky and fix typo in build.js. Former-commit-id: 6be9d35758f5a3f82ff1a01d02d8a3f17e0d9a97 --- build.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.js b/build.js index 903d0c39f..841ae6cc4 100755 --- a/build.js +++ b/build.js @@ -366,7 +366,7 @@ // custom build process.argv.some(function(arg) { // exit early if not the "exclude" or "include" command option - var pair = arg.match(/^(exclude|include)=(.+)$/); + var pair = arg.match(/^(exclude|include)=(.*)$/); if (!pair) { return false; } @@ -400,11 +400,11 @@ } // remove associated functions, variables and code snippets - if (isRemoved('isArguments')) { + if (isRemoved(source, 'isArguments')) { // remove `isArguments` if-statement source = source.replace(/(?:\s*\/\/.*)*\s*if *\(!isArguments[^)]+\)[\s\S]+?};?\s*}\n/, ''); } - if (isRemoved('mixin')) { + if (isRemoved(source, 'mixin')) { // remove `LoDash` constructor source = removeFunction(source, 'LoDash'); // remove `LoDash` calls