index.js
function isFileProcessable(filepath) {
    if (options.fileFilterRegex.length === 0) {
      return true;
    }

    return options.fileFilterRegex.some((regex) => filepath.match(regex) !== null);
  }
function isFileProcessable(filepath) {
    if (options.fileFilterRegex.length === 0) {
      return true;
    }

    return options.fileFilterRegex.some((regex) => filepath.match(regex) !== null);
  }
function isFileProcessable ( filepath ) { if ( options . fileFilterRegex . length === 0 ) { return true ; } return options . fileFilterRegex . some ( ( regex ) => filepath . match ( regex ) !== null ) ; }
Checks whether the given file is allowed by the filter
Checks whether the given file is allowed by the filter