code: function(filename) {
      if (!filename || typeof filename === 'object') {
        return;
      }
  
      var match = filename.match(/[^\*]*/);
  
      if (match[0] !== filename) {
        return match.pop();
      }
    }
docs: Checks if the input is a glob and if so, returns the unglobbed version of the filename