Closed ahmetb closed 8 years ago
Makes sense to me! I agree it would be nicer to just strings.ToLower()
everything before comparing.
I'm going to work on a pull request for this one, minus objections.
see #9 pull request
Ok @ryanuber should be good to take a look in #9 thx to @ahmetalpbalkan I added some more testing.
This can be closed
I was looking at
GuessFile
method and it looks like if the license file isLicense.txt
(for instance https://github.com/dotnet/roslyn/blob/master/License.txt)LICENSE.TXT
(https://github.com/dotnet/coreclr/blob/master/LICENSE.TXT)it wouldn't match... (I know, microsoft people, right?..)
Perhaps if we do the string comparison case-insensitive, that could also help eliminating the duplication going on at
DefaultLicenseFiles
variable.What do you think @ryanuber ?