mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Detection of zlib license
This commit is contained in:
@@ -135,6 +135,8 @@ class TestGrammars < Minitest::Test
|
|||||||
"unlicense"
|
"unlicense"
|
||||||
elsif content.include?("http://www.wtfpl.net/txt/copying/")
|
elsif content.include?("http://www.wtfpl.net/txt/copying/")
|
||||||
"WTFPL"
|
"WTFPL"
|
||||||
|
elsif content.include?("zlib") && content.include?("license") && content.include?("2. Altered source versions must be plainly marked as such")
|
||||||
|
"zlib"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user