odd multimatch pattern
Opened this issue · 0 comments
leviwheatcroft commented
here:
Object.keys(files)
.filter(function (p) {
return multimatch(p, options.pattern).length > 0
})
is there any reason for the extra level of iteration? multimatch returns an array of matches, so a more common implementation would be
Object.keys(multimatch(files, options.pattern))
Maybe this package has switched from minimatch in the past, and is still using the minimatch pattern with multimatch.