Recognize the Mozilla Public License for grammars

This commit is contained in:
Paul Chaignon
2015-08-13 17:35:01 +02:00
parent 5fcdf6adc2
commit 6226a46988

View File

@@ -132,6 +132,12 @@ class TestGrammars < Minitest::Test
"BSD"
elsif content.include?("Permission is hereby granted") || content =~ /\bMIT\b/
"MIT"
elsif content.include?("Mozilla Public License")
if content.include?("version 2.0")
"MPLv2.0"
elsif content.include?("version 1.1")
"MPLv1.1"
end
elsif content.include?("unlicense.org")
"unlicense"
elsif content.include?("http://www.wtfpl.net/txt/copying/")