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:
NachoSoto
2017-11-29 06:25:04 -08:00
committed by Colin Seymour
parent ded0dc74e0
commit 38901d51d2
2 changed files with 4 additions and 1 deletions

View File

@@ -240,7 +240,7 @@
- \.imageset/ - \.imageset/
# Carthage # Carthage
- ^Carthage/ - (^|/)Carthage/
# Sparkle # Sparkle
- (^|/)Sparkle/ - (^|/)Sparkle/

View File

@@ -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?