mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +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.
|
* @returns {String} Returns the modified source.
|
||||||
*/
|
*/
|
||||||
function addCommandsToHeader(source, commands) {
|
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
|
// convert unmatched groups to empty strings
|
||||||
var parts = _.map(slice.call(arguments, 1), function(part) {
|
var parts = _.map(slice.call(arguments, 1), function(part) {
|
||||||
return part || '';
|
return part || '';
|
||||||
@@ -439,7 +439,7 @@
|
|||||||
// add build commands to copyright/license header
|
// add build commands to copyright/license header
|
||||||
return (
|
return (
|
||||||
parts[0] +
|
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(' ') + '`'
|
parts[1] + ' Build: `lodash ' + commands.join(' ') + '`'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -9,12 +9,11 @@
|
|||||||
var licenseTemplate = {
|
var licenseTemplate = {
|
||||||
'lodash':
|
'lodash':
|
||||||
'/*!\n' +
|
'/*!\n' +
|
||||||
' @license\n' +
|
|
||||||
' Lo-Dash <%= VERSION %> lodash.com/license\n' +
|
' Lo-Dash <%= VERSION %> lodash.com/license\n' +
|
||||||
' Underscore.js 1.4.3 underscorejs.org/LICENSE\n' +
|
' Underscore.js 1.4.3 underscorejs.org/LICENSE\n' +
|
||||||
'*/',
|
'*/',
|
||||||
'underscore':
|
'underscore':
|
||||||
'/*! @license Underscore.js <%= VERSION %> underscorejs.org/LICENSE */'
|
'/*! Underscore.js <%= VERSION %> underscorejs.org/LICENSE */'
|
||||||
};
|
};
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|||||||
1
lodash.min.js
vendored
1
lodash.min.js
vendored
@@ -1,5 +1,4 @@
|
|||||||
/*!
|
/*!
|
||||||
@license
|
|
||||||
Lo-Dash 1.0.0-rc.2 lodash.com/license
|
Lo-Dash 1.0.0-rc.2 lodash.com/license
|
||||||
Underscore.js 1.4.3 underscorejs.org/LICENSE
|
Underscore.js 1.4.3 underscorejs.org/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|||||||
1
lodash.underscore.min.js
vendored
1
lodash.underscore.min.js
vendored
@@ -1,5 +1,4 @@
|
|||||||
/*!
|
/*!
|
||||||
@license
|
|
||||||
Lo-Dash 1.0.0-rc.2 (Custom Build) lodash.com/license
|
Lo-Dash 1.0.0-rc.2 (Custom Build) lodash.com/license
|
||||||
Build: `lodash underscore -m -o ./lodash.underscore.min.js`
|
Build: `lodash underscore -m -o ./lodash.underscore.min.js`
|
||||||
Underscore.js 1.4.3 underscorejs.org/LICENSE
|
Underscore.js 1.4.3 underscorejs.org/LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user