Skip to content

Commit

Permalink
Merge pull request #10 from gemini-testing/is-masks-polyfill
Browse files Browse the repository at this point in the history
Add isMasks polyfill for backward compatibility.
  • Loading branch information
seth2810 committed Oct 26, 2016
2 parents bd802f2 + 9efaf0b commit b3df291
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ exports.expandPaths = (paths, expandOpts, globOpts) => {
};

exports.isMask = isMask;

// :TODO: Backward compatibility
exports.isMasks = (patterns) => [].concat(patterns).every(isMask);

0 comments on commit b3df291

Please sign in to comment.