Closed edi9999 closed 8 years ago
Thanks - I will take a look into this.
The reason is because there is no mention of the text ' MIT ' in the file.
I have considered adding a text matching algorithm that will attempt to score whether it can find specific license text in a file - some sort of distance matching algorithm with a sliding window over the text files. I ran some tests and it is extremely slow to do this with any number of licenses and any number of text files to review. Theoretically the full text of the license includes the text 'The MIT License'
Here are some steps to reproduce :
Actual result :
Expected Result :
For information, here is the result of :
ls node_modules/colors/
colors.js example.html example.js MIT-LICENSE.txt package.json ReadMe.md test.js
cat node_modules/colors/MIT-LICENSE.txt
Strangely, they is no newline at the end of the file
node_modules/colors/MIT-LICENSE.txt
, maybe it might also be the cause o fthe issue .