davglass/license-checker

License mislabeled for `js-object.entries`

brettz9 opened this issue · 1 comments

Though I've filed m59peacemaker/js-object.entries#2 to add to have license added to package.json, I would not have expected the README URL to be included in the license type (i.e., "Custom: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global") as there is a bundled CC0-1.0 license.

I agree, it seems rather inaccurate to arbitrarily take the first string that looks like a URL from, e.g., the README file. Some of the versions for my packages with UNKNOWN license are now a pipeline build status svg url.

match = IS_URL.exec(str) || IS_FILE_REFERENCE.exec(str);

moduleInfo.licenses = license(content);