src/search/FileFilters.js
function getPathsMatchingFilter(compiledFilter, filePaths) {
        if (!compiledFilter) {
            return filePaths;
        }

        var re = new RegExp(compiledFilter);
        return filePaths.filter(function (f) {
            return f.match(re);
        });
    }
function getPathsMatchingFilter(compiledFilter, filePaths) {
        if (!compiledFilter) {
            return filePaths;
        }

        var re = new RegExp(compiledFilter);
        return filePaths.filter(function (f) {
            return f.match(re);
        });
    }
function getPathsMatchingFilter ( compiledFilter , filePaths ) { if ( ! compiledFilter ) { return filePaths ; } var re = new RegExp ( compiledFilter ) ; return filePaths . filter ( function ( f ) { return f . match ( re ) ; } ) ; }
Returns a copy of 'file path' strings that match any of the exclusion globs in the filter.

@param {?string} compiledFilter  'Compiled' filter object as returned by compile(), or null to no-op
@param {!Array.<string>} An array with a list of full file paths that matches atleast one of the filter.
@return {!Array.<string>}
Returns a copy of file path strings that match any of the exclusion globs in the filter .