mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Avoid hardcoded indents in build.js.
Former-commit-id: ece1e6a32f5d308e4674774f8875ee34c06b4d43
This commit is contained in:
2
build.js
2
build.js
@@ -2673,7 +2673,7 @@
|
|||||||
} else if (/support\.nonEnumArgs\b/.test(match)) {
|
} else if (/support\.nonEnumArgs\b/.test(match)) {
|
||||||
return match.replace(setup, '');
|
return match.replace(setup, '');
|
||||||
}
|
}
|
||||||
return body.replace(/^ {4}/gm, ' ');
|
return body.replace(RegExp('^' + indent, 'gm'), indent.slice(0, -2));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user