1
0
mirror of https://github.com/actions/labeler synced 2026-05-10 00:11:00 +02:00
This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

21
node_modules/spdx-correct/index.js generated vendored
View File

@@ -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