supportedTypes.types.forEach(function (type) {
      supportedTypes.typesRegex[type] = new RegExp('\\.' + type + '$', 'i');
    });