mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Revert @license doc tag addition of #138.
Former-commit-id: a66d22c952b3a0bb45e049a80ee80aa54c4e6a33
This commit is contained in:
4
build.js
4
build.js
@@ -417,7 +417,7 @@
|
||||
* @returns {String} Returns the modified source.
|
||||
*/
|
||||
function addCommandsToHeader(source, commands) {
|
||||
return source.replace(/(\/\*!\n)( \*)?( *@license[\s*]+)?( *Lo-Dash [\w.-]+)(.*)/, function() {
|
||||
return source.replace(/(\/\*!\n)( \*)?( *Lo-Dash [\w.-]+)(.*)/, function() {
|
||||
// convert unmatched groups to empty strings
|
||||
var parts = _.map(slice.call(arguments, 1), function(part) {
|
||||
return part || '';
|
||||
@@ -439,7 +439,7 @@
|
||||
// add build commands to copyright/license header
|
||||
return (
|
||||
parts[0] +
|
||||
parts[1] + parts[2] + parts[3] + ' (Custom Build)' + parts[4] + '\n' +
|
||||
parts[1] + parts[2] + ' (Custom Build)' + parts[3] + '\n' +
|
||||
parts[1] + ' Build: `lodash ' + commands.join(' ') + '`'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user