Remove extraneous spaces from non-minified builds.

Former-commit-id: ec8e18d00884cab96031c061ed32002f41edc0e5
This commit is contained in:
John-David Dalton
2013-03-03 23:29:54 -08:00
parent 41e401b05e
commit 87b1ac776f
4 changed files with 49 additions and 51 deletions

View File

@@ -576,6 +576,8 @@
return source return source
// remove pseudo private properties // remove pseudo private properties
.replace(/(?:(?:\s*\/\/.*)*\s*lodash\._[^=]+=.+\n)+/g, '\n') .replace(/(?:(?:\s*\/\/.*)*\s*lodash\._[^=]+=.+\n)+/g, '\n')
// remove extraneous whitespace
.replace(/^ *\n/gm, '\n')
// remove lines with just whitespace and semicolons // remove lines with just whitespace and semicolons
.replace(/^ *;\n/gm, '') .replace(/^ *;\n/gm, '')
// consolidate multiple newlines // consolidate multiple newlines

View File

@@ -485,7 +485,6 @@
(obj.bottom ) + (obj.bottom ) +
';\nreturn result'; ';\nreturn result';
return __p return __p
}; };

1
dist/lodash.js vendored
View File

@@ -367,7 +367,6 @@
(obj.bottom ) + (obj.bottom ) +
';\nreturn result'; ';\nreturn result';
return __p return __p
}; };

View File

@@ -4092,7 +4092,6 @@
return value; return value;
} }
/** /**
* Invokes `interceptor` with the `value` as the first argument, and then * Invokes `interceptor` with the `value` as the first argument, and then
* returns `value`. The purpose of this method is to "tap into" a method chain, * returns `value`. The purpose of this method is to "tap into" a method chain,
@@ -4139,7 +4138,6 @@
return this; return this;
} }
/** /**
* Produces the `toString` result of the wrapped value. * Produces the `toString` result of the wrapped value.
* *