mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Remove unused snippet from pre-compile.js.
Former-commit-id: d52c35eed1ccd611f728febfca5b5154440e9fb0
This commit is contained in:
@@ -245,9 +245,6 @@
|
|||||||
return (captured || '') + string;
|
return (captured || '') + string;
|
||||||
});
|
});
|
||||||
|
|
||||||
// add newline to `body + '}'` in `createFunction`
|
|
||||||
source = source.replace(/body *\+ *'}'/, 'body+"\\n}"');
|
|
||||||
|
|
||||||
// remove whitespace from `_.template` related regexes
|
// remove whitespace from `_.template` related regexes
|
||||||
source = source.replace(/(?:reEmptyString\w+|reInsertVariable) *=.+/g, function(match) {
|
source = source.replace(/(?:reEmptyString\w+|reInsertVariable) *=.+/g, function(match) {
|
||||||
return match.replace(/ |\\n/g, '');
|
return match.replace(/ |\\n/g, '');
|
||||||
|
|||||||
Reference in New Issue
Block a user