mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
More inclusive documentation matches for License and Readme files
This commit is contained in:
@@ -22,7 +22,9 @@
|
|||||||
- (^|/)COPYING(\.|$)
|
- (^|/)COPYING(\.|$)
|
||||||
- (^|/)INSTALL(\.|$)
|
- (^|/)INSTALL(\.|$)
|
||||||
- (^|/)LICEN[CS]E(\.|$)
|
- (^|/)LICEN[CS]E(\.|$)
|
||||||
|
- (^|/)[Ll]icen[cs]e(\.|$)
|
||||||
- (^|/)README(\.|$)
|
- (^|/)README(\.|$)
|
||||||
|
- (^|/)[Rr]eadme(\.|$)
|
||||||
|
|
||||||
# Samples folders
|
# Samples folders
|
||||||
- ^[Ss]amples/
|
- ^[Ss]amples/
|
||||||
|
|||||||
@@ -514,6 +514,8 @@ class TestBlob < Minitest::Test
|
|||||||
assert_predicate fixture_blob("README"), :documentation?
|
assert_predicate fixture_blob("README"), :documentation?
|
||||||
assert_predicate fixture_blob("README.md"), :documentation?
|
assert_predicate fixture_blob("README.md"), :documentation?
|
||||||
assert_predicate fixture_blob("README.txt"), :documentation?
|
assert_predicate fixture_blob("README.txt"), :documentation?
|
||||||
|
assert_predicate fixture_blob("Readme"), :documentation?
|
||||||
|
assert_predicate fixture_blob("readme"), :documentation?
|
||||||
assert_predicate fixture_blob("foo/README"), :documentation?
|
assert_predicate fixture_blob("foo/README"), :documentation?
|
||||||
|
|
||||||
assert_predicate fixture_blob("CHANGE"), :documentation?
|
assert_predicate fixture_blob("CHANGE"), :documentation?
|
||||||
@@ -541,6 +543,7 @@ class TestBlob < Minitest::Test
|
|||||||
|
|
||||||
assert_predicate fixture_blob("LICENSE"), :documentation?
|
assert_predicate fixture_blob("LICENSE"), :documentation?
|
||||||
assert_predicate fixture_blob("LICENCE.md"), :documentation?
|
assert_predicate fixture_blob("LICENCE.md"), :documentation?
|
||||||
|
assert_predicate fixture_blob("License.txt"), :documentation?
|
||||||
assert_predicate fixture_blob("LICENSE.txt"), :documentation?
|
assert_predicate fixture_blob("LICENSE.txt"), :documentation?
|
||||||
assert_predicate fixture_blob("foo/LICENSE"), :documentation?
|
assert_predicate fixture_blob("foo/LICENSE"), :documentation?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user