src/utils/index.js
function filenameInclude(filename, exclude, include) { // eslint-disable-line
  var output = true; // eslint-disable-line

  if (exclude) {
    if (globToRegExp(exclude, { extended: true }).test(filename)
    && !globToRegExp(include || '', { extended: true }).test(filename)) {
      output = false;
    }
  }

  return output;
}
function filenameInclude(filename, exclude, include) { // eslint-disable-line
  var output = true; // eslint-disable-line

  if (exclude) {
    if (globToRegExp(exclude, { extended: true }).test(filename)
    && !globToRegExp(include || '', { extended: true }).test(filename)) {
      output = false;
    }
  }

  return output;
}
function filenameInclude ( filename , exclude , include ) { // eslint-disable-line var output = true ; // eslint-disable-line if ( exclude ) { if ( globToRegExp ( exclude , { extended : true } ) . test ( filename ) && ! globToRegExp ( include || '' , { extended : true } ) . test ( filename ) ) { output = false ; } } return output ; }
returns true if the filename should be included
returns true if the filename should be included