mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Changed Carthage vendor regex to allow folder in any subdirectory (#3921)
In monorepro projects, it's not uncommon for `Carthage` to not be in the root directory.
This commit is contained in:
@@ -240,7 +240,7 @@
|
|||||||
- \.imageset/
|
- \.imageset/
|
||||||
|
|
||||||
# Carthage
|
# Carthage
|
||||||
- ^Carthage/
|
- (^|/)Carthage/
|
||||||
|
|
||||||
# Sparkle
|
# Sparkle
|
||||||
- (^|/)Sparkle/
|
- (^|/)Sparkle/
|
||||||
|
|||||||
@@ -492,6 +492,9 @@ class TestFileBlob < Minitest::Test
|
|||||||
|
|
||||||
# Carthage
|
# Carthage
|
||||||
assert sample_blob('Carthage/blah').vendored?
|
assert sample_blob('Carthage/blah').vendored?
|
||||||
|
assert sample_blob('iOS/Carthage/blah').vendored?
|
||||||
|
assert !sample_blob('My-Carthage/blah').vendored?
|
||||||
|
assert !sample_blob('iOS/My-Carthage/blah').vendored?
|
||||||
|
|
||||||
# Html5shiv
|
# Html5shiv
|
||||||
assert sample_blob("Scripts/html5shiv.js").vendored?
|
assert sample_blob("Scripts/html5shiv.js").vendored?
|
||||||
|
|||||||
Reference in New Issue
Block a user