Skip to content

Commit

Permalink
Merge branch 'windows-compat' of github.com:mktange/pkg into windows-…
Browse files Browse the repository at this point in the history
…compat
  • Loading branch information
mktange committed Mar 10, 2018
2 parents ea5db61 + 5f8a5da commit 442da40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions matcher/matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,14 @@ type nameMatcher []*regexp.Regexp
func (m nameMatcher) Match(inputRelPath string) bool {
for _, currSubpath := range allSubpaths(inputRelPath) {
currName := filepath.Base(currSubpath)
<<<<<<< HEAD
// do not match relative path components
if currName == ".." {
continue
}

=======
>>>>>>> 5f8a5da3cbe649d89ce270eb4bc605cd9042490f
for _, currRegExp := range []*regexp.Regexp(m) {
matchLoc := currRegExp.FindStringIndex(currName)
if len(matchLoc) > 0 && matchLoc[0] == 0 && matchLoc[1] == len(currName) {
Expand Down

0 comments on commit 442da40

Please sign in to comment.