isaacs/minimatch — pull request #19 by gjtorikian (2013-09-18 01:00:56+00:00)
Title: Don't join and split each time

`path.basename(f.join("/")).split("/")` is called on _every iteration_ of checking the patterns and if a `pattern.length = 1`. Instead, just perform the rearrangement once and keep it handy.