Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Apr 4, 2016
1 parent 53dd2f3 commit cd36e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -20,8 +20,8 @@ directories which can't contain any matching files.
var gpp = require('glob-possible-parent');
var micromatch = require('micromatch'); // you can use any matcher implementation here

// 1. use gpp() to transform the original pattern into an array of patterns which can be passed to the matching library
// 2. create a RegExp from each pattern
// 1. use gpp() to transform the original pattern into an array of patterns
// 2. use micromatch to create a RegExp from each pattern
// 3. join all created RegExps

var gppRegExp = new RegExp('^(?:\\/$|(?:' + gpp('src/js/**/*.js').map(function (pattern) {
Expand Down

0 comments on commit cd36e33

Please sign in to comment.