fix license script old licenses array

This commit is contained in:
Eugenio Romano
2019-06-13 11:24:40 +01:00
parent ab3bb9002f
commit 6d2f2030fe

View File

@@ -51,7 +51,7 @@ checker.init({
} else {
for (var packageName in packages) {
var pack = packages[packageName];
pack['licenseExp'] = pack['licenses']
pack['licenseExp'] = pack['licenses'].toString()
.replace(/\*/, '')
.replace(/[a-zA-Z0-9\-\.]+/g, match => {
var lowerMatch = match.toLowerCase();