Check if file ending is considered as download.

def _is_download(ending):
    """Check if file ending is considered as download."""
    list = [
            'PDF',
            'DOC',
            'TXT',
            'PPT',
            'XLSX',
            'MP3',
            'SVG',
            '7Z',
            'HTML',
            'TEX',
            'MPP',
            'ODT',
            'RAR',
            'ZIP',
            'TAR',
            'EPUB',
           ]
    list_regex = [
                  'PDF'
                 ]
    if ending in list:
        return True
    for file_type in list_regex:
        if re.search(re.escape(file_type), ending):
            return True
    return False