Revert @license doc tag addition of #138.

Former-commit-id: a66d22c952b3a0bb45e049a80ee80aa54c4e6a33
This commit is contained in:
John-David Dalton
2012-12-14 00:41:56 -08:00
parent 33bc3d6a1e
commit 99686fdd73
4 changed files with 3 additions and 6 deletions

View File

@@ -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(' ') + '`'
);
});

View File

@@ -9,12 +9,11 @@
var licenseTemplate = {
'lodash':
'/*!\n' +
' @license\n' +
' Lo-Dash <%= VERSION %> lodash.com/license\n' +
' Underscore.js 1.4.3 underscorejs.org/LICENSE\n' +
'*/',
'underscore':
'/*! @license Underscore.js <%= VERSION %> underscorejs.org/LICENSE */'
'/*! Underscore.js <%= VERSION %> underscorejs.org/LICENSE */'
};
/*--------------------------------------------------------------------------*/

1
lodash.min.js vendored
View File

@@ -1,5 +1,4 @@
/*!
@license
Lo-Dash 1.0.0-rc.2 lodash.com/license
Underscore.js 1.4.3 underscorejs.org/LICENSE
*/

View File

@@ -1,5 +1,4 @@
/*!
@license
Lo-Dash 1.0.0-rc.2 (Custom Build) lodash.com/license
Build: `lodash underscore -m -o ./lodash.underscore.min.js`
Underscore.js 1.4.3 underscorejs.org/LICENSE