From 40f9eeda3607081965250daa0b321566b11e83bb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 10 Mar 2013 03:28:59 -0700 Subject: [PATCH] Remove `reLeadingZeros` from `lodash underscore` build. Former-commit-id: 289d53be5b6af17ace4118ea0e6d9784667d09d3 --- build.js | 3 ++- dist/lodash.underscore.js | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.js b/build.js index 772cd3f72..964225622 100755 --- a/build.js +++ b/build.js @@ -2567,7 +2567,7 @@ source = replaceVar(source, 'htmlUnescapes', "{'&':'&','<':'<','>':'>','"':'\"',''':\"'\"}"); } if (isRemoved(source, 'isArguments')) { - source = replaceVar(source, 'noArgsClass', 'false'); + source = replaceSupportProp(source, 'argsClass', 'true'); } if (isRemoved(source, 'isFunction')) { source = removeIsFunctionFallback(source); @@ -2639,6 +2639,7 @@ } if (isRemoved(source, 'parseInt')) { source = removeVar(source, 'nativeParseInt'); + source = removeVar(source, 'reLeadingZeros'); } if (isRemoved(source, 'template')) { // remove `templateSettings` assignment diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index 8c1a61d29..29330653b 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -50,9 +50,6 @@ /** Used to match "interpolate" template delimiters */ var reInterpolate = /<%=([\s\S]+?)%>/g; - /** Used to match leading zeros to be removed */ - var reLeadingZeros = /^0+(?=.$)/; - /** Used to ensure capturing order of template delimiters */ var reNoMatch = /($^)/;