mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Recognize the Mozilla Public License for grammars
This commit is contained in:
		| @@ -132,6 +132,12 @@ class TestGrammars < Minitest::Test | |||||||
|       "BSD" |       "BSD" | ||||||
|     elsif content.include?("Permission is hereby granted") || content =~ /\bMIT\b/ |     elsif content.include?("Permission is hereby granted") || content =~ /\bMIT\b/ | ||||||
|       "MIT" |       "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") |     elsif content.include?("unlicense.org") | ||||||
|       "unlicense" |       "unlicense" | ||||||
|     elsif content.include?("http://www.wtfpl.net/txt/copying/") |     elsif content.include?("http://www.wtfpl.net/txt/copying/") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user