mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Classify "documentation/" directories (lowercase) as documentation
This is used in repositories like jashkenas/coffeescript.
This commit is contained in:
		| @@ -10,7 +10,7 @@ | ||||
| ## Documentation directories ## | ||||
|  | ||||
| - ^docs?/ | ||||
| - ^[Dd]ocumentation/ | ||||
| - (^|/)[Dd]ocumentation/ | ||||
| - (^|/)javadoc/ | ||||
| - ^man/ | ||||
|  | ||||
|   | ||||
| @@ -449,8 +449,8 @@ class TestBlob < Minitest::Test | ||||
|  | ||||
|     assert_predicate fixture_blob("Documentation/foo.md"), :documentation? | ||||
|     assert_predicate fixture_blob("documentation/foo.md"), :documentation? | ||||
|     refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation? | ||||
|     refute_predicate fixture_blob("project/documentation/foo.md"), :documentation? | ||||
|     assert_predicate fixture_blob("project/Documentation/foo.md"), :documentation? | ||||
|     assert_predicate fixture_blob("project/documentation/foo.md"), :documentation? | ||||
|  | ||||
|     assert_predicate fixture_blob("javadoc/foo.html"), :documentation? | ||||
|     assert_predicate fixture_blob("project/javadoc/foo.html"), :documentation? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user