validate-npm-package-license
Advanced tools
Comparing version 3.0.3 to 3.0.4
12
index.js
@@ -60,7 +60,9 @@ var parse = require('spdx-expression-parse'); | ||
}; | ||
var corrected = correct(argument); | ||
if (corrected) { | ||
result.warnings.push( | ||
'license is similar to the valid expression "' + corrected + '"' | ||
); | ||
if (argument.trim().length !== 0) { | ||
var corrected = correct(argument); | ||
if (corrected) { | ||
result.warnings.push( | ||
'license is similar to the valid expression "' + corrected + '"' | ||
); | ||
} | ||
} | ||
@@ -67,0 +69,0 @@ return result; |
{ | ||
"name": "validate-npm-package-license", | ||
"description": "Give me a string and I'll tell you if it's a valid npm package license string", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)", | ||
"contributors": [ | ||
"Mark Stacey <markjstacey@gmail.com>" | ||
], | ||
"dependencies": { | ||
@@ -7,0 +10,0 @@ "spdx-correct": "^3.0.0", |
79
16597
4