mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
Fix legacy build.
Former-commit-id: 27bbe3ec6e025185daf73f9589e034e82097c313
This commit is contained in:
8
build.js
8
build.js
@@ -898,9 +898,13 @@
|
||||
var modified = snippet.replace(RegExp("^ *'" + varName + "': *" + varName + '.+\\n', 'm'), '');
|
||||
source = source.replace(snippet, modified);
|
||||
|
||||
// clip the snippet at the `factory` assignment
|
||||
// clip at the `factory` assignment
|
||||
snippet = modified.match(/Function\([\s\S]+$/)[0];
|
||||
modified = snippet.replace(RegExp('\\b' + varName + '\\b,? *', 'g'), '');
|
||||
|
||||
modified = snippet
|
||||
.replace(RegExp('\\b' + varName + '\\b,? *', 'g'), '')
|
||||
.replace(/, *',/, "',")
|
||||
.replace(/,\s*\)/, ')')
|
||||
|
||||
source = source.replace(snippet, modified);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user