nl_tokens: Returns true if the filepath contains the given pattern . Can also return a function for matching .
pl_tokens: function isMatch ( fp , pattern , opts ) { if ( typeof fp !== 'string' ) { throw new TypeError ( msg ( 'isMatch' , 'filepath' , 'a string' ) ) ; } fp = utils . unixify ( fp , opts ) ; if ( utils . typeOf ( pattern ) === 'object' ) { return matcher ( fp , <mask> ) ; } return matcher ( pattern , opts ) ( fp ) ; }