I found an inconsistency between exclude and allowOnly behaviour.
If you npm install the following package.json and execute the task license-check-exclude the output will be empty, so all licenses are covered by the exclude list.
In my opinion the algorithm for searching and checking the licenses should get to the same result here.
Another bug I found is, that even if you add the custom url to the onlyAllow list, it is still be found. After some searching through your code I think it happens because whitespace is deleted in the init function.
We want to use your module for checking our installed licenses but with these two bugs it is not usable for us.
Hey,
I found an inconsistency between exclude and allowOnly behaviour.
If you npm install the following package.json and execute the task license-check-exclude the output will be empty, so all licenses are covered by the exclude list.
If you execute license-check-onlyAllow instead it complains about not allowed licenses. (For example: Custom: https://github.com/douglascrockford/JSON-js and AFLv2.1,BSD)
In my opinion the algorithm for searching and checking the licenses should get to the same result here.
Another bug I found is, that even if you add the custom url to the onlyAllow list, it is still be found. After some searching through your code I think it happens because whitespace is deleted in the init function.
We want to use your module for checking our installed licenses but with these two bugs it is not usable for us.