mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Remove extraneous spaces from non-minified builds.
Former-commit-id: ec8e18d00884cab96031c061ed32002f41edc0e5
This commit is contained in:
2
build.js
2
build.js
@@ -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
|
||||||
|
|||||||
1
dist/lodash.compat.js
vendored
1
dist/lodash.compat.js
vendored
@@ -485,7 +485,6 @@
|
|||||||
(obj.bottom ) +
|
(obj.bottom ) +
|
||||||
';\nreturn result';
|
';\nreturn result';
|
||||||
|
|
||||||
|
|
||||||
return __p
|
return __p
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
1
dist/lodash.js
vendored
1
dist/lodash.js
vendored
@@ -367,7 +367,6 @@
|
|||||||
(obj.bottom ) +
|
(obj.bottom ) +
|
||||||
';\nreturn result';
|
';\nreturn result';
|
||||||
|
|
||||||
|
|
||||||
return __p
|
return __p
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user