mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +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(' ') + '`'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -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
1
lodash.min.js
vendored
@@ -1,5 +1,4 @@
|
||||
/*!
|
||||
@license
|
||||
Lo-Dash 1.0.0-rc.2 lodash.com/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
|
||||
Build: `lodash underscore -m -o ./lodash.underscore.min.js`
|
||||
Underscore.js 1.4.3 underscorejs.org/LICENSE
|
||||
|
||||
Reference in New Issue
Block a user