mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Make modern build pass unit tests again.
Former-commit-id: 6269bdbaa7cd96217568504921da097c2352cef8
This commit is contained in:
3
build.js
3
build.js
@@ -1873,6 +1873,9 @@
|
||||
}
|
||||
else if (/^(?:max|min)$/.test(methodName)) {
|
||||
match = match.replace(/\beach\(/, 'forEach(');
|
||||
if (!isUnderscore) {
|
||||
return match;
|
||||
}
|
||||
}
|
||||
return match.replace(/^(( *)if *\(.*?\bisArray\([^\)]+\).*?\) *{\n)(( *)var index[^;]+.+\n+)/m, function(snippet, statement, indent, vars) {
|
||||
vars = vars
|
||||
|
||||
Reference in New Issue
Block a user