spdx-correct
Advanced tools
Comparing version 3.1.0 to 3.1.1
21
index.js
@@ -52,2 +52,3 @@ /* | ||
['Mozilla Public License', 'MPL'], | ||
['Universal Permissive License', 'UPL'], | ||
['WTH', 'WTF'], | ||
@@ -142,2 +143,22 @@ ['-License', ''] | ||
}, | ||
// 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' | ||
@@ -144,0 +165,0 @@ function (argument) { |
{ | ||
"name": "spdx-correct", | ||
"description": "correct invalid SPDX expressions", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
22402
347