lib/discovery/manifest.js
function hasFileType(file, fileExt) {
  file = path.basename(file);
  var ext = path.extname(file);
  do {
    if (ext === fileExt) {
      return true;
    } else {
      file = path.basename(file, ext);
      ext = path.extname(file);
    }
  } while (ext);
  return false;
}
function hasFileType(file, fileExt) {
  file = path.basename(file);
  var ext = path.extname(file);
  do {
    if (ext === fileExt) {
      return true;
    } else {
      file = path.basename(file, ext);
      ext = path.extname(file);
    }
  } while (ext);
  return false;
}
function hasFileType ( file , fileExt ) { file = path . basename ( file ) ; var ext = path . extname ( file ) ; do { if ( ext === fileExt ) { return true ; } else { file = path . basename ( file , ext ) ; ext = path . extname ( file ) ; } } while ( ext ) ; return false ; }
Checks that the file has the specified type in one of its extensions

E.g.

hasFileType('foo.js.dust.ejs', '.js') => true
hasFileType('foo.css.less', '.js') => false
hasFileType('foo.css.less', '.css') => true
Checks that the file has the specified type in one of its extensions