mirror of
https://github.com/actions/labeler
synced 2026-05-10 00:11:00 +02:00
build
This commit is contained in:
21
node_modules/spdx-correct/index.js
generated
vendored
21
node_modules/spdx-correct/index.js
generated
vendored
@@ -49,6 +49,7 @@ var transpositions = [
|
||||
['GNU GENERAL PUBLIC LICENSE', 'GPL'],
|
||||
['MTI', 'MIT'],
|
||||
['Mozilla Public License', 'MPL'],
|
||||
['Universal Permissive License', 'UPL'],
|
||||
['WTH', 'WTF'],
|
||||
['-License', '']
|
||||
]
|
||||
@@ -138,6 +139,26 @@ var transforms = [
|
||||
function (argument) {
|
||||
return argument.replace(/(-| )clause(-| )(\d)/, '-$3-Clause')
|
||||
},
|
||||
// e.g. 'New BSD license'
|
||||
function (argument) {
|
||||
return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, 'BSD-3-Clause')
|
||||
},
|
||||
// e.g. 'Simplified BSD license'
|
||||
function (argument) {
|
||||
return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, 'BSD-2-Clause')
|
||||
},
|
||||
// e.g. 'Free BSD license'
|
||||
function (argument) {
|
||||
return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, 'BSD-2-Clause-$1BSD')
|
||||
},
|
||||
// e.g. 'Clear BSD license'
|
||||
function (argument) {
|
||||
return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, 'BSD-3-Clause-Clear')
|
||||
},
|
||||
// e.g. 'Old BSD License'
|
||||
function (argument) {
|
||||
return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, 'BSD-4-Clause')
|
||||
},
|
||||
// e.g. 'BY-NC-4.0'
|
||||
function (argument) {
|
||||
return 'CC-' + argument
|
||||
|
||||
Reference in New Issue
Block a user