fix item type matching, bump version

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
development
kim (grufwub) 4 years ago
parent a47f958499
commit 8242b4eb35

@ -13,7 +13,7 @@ import (
const (
// Version holds the current version string
Version = "v2.5.3-beta"
Version = "v2.5.4-beta"
)
var (

@ -58,81 +58,82 @@ const (
// fileExtMap specifies mapping of file extensions to gopher item types
var fileExtMap = map[string]ItemType{
"out": typeBin,
"a": typeBin,
"o": typeBin,
"ko": typeBin, /* Kernel extensions... WHY ARE YOU GIVING ACCESS TO DIRECTORIES WITH THIS */
"gophermap": typeDirectory,
"lz": typeBinArchive,
"gz": typeBinArchive,
"bz2": typeBinArchive,
"7z": typeBinArchive,
"zip": typeBinArchive,
"gitignore": typeFile,
"txt": typeFile,
"json": typeFile,
"yaml": typeFile,
"ocaml": typeFile,
"s": typeFile,
"c": typeFile,
"py": typeFile,
"h": typeFile,
"go": typeFile,
"fs": typeFile,
"odin": typeFile,
"nanorc": typeFile,
"bashrc": typeFile,
"mkshrc": typeFile,
"vimrc": typeFile,
"vim": typeFile,
"viminfo": typeFile,
"sh": typeFile,
"conf": typeFile,
"xinitrc": typeFile,
"jstarrc": typeFile,
"joerc": typeFile,
"jpicorc": typeFile,
"profile": typeFile,
"bash_profile": typeFile,
"bash_logout": typeFile,
"log": typeFile,
"ovpn": typeFile,
"md": typeMarkup,
"xml": typeXML,
"doc": typeDoc,
"docx": typeDoc,
"pdf": typeDoc,
"jpg": typeImage,
"jpeg": typeImage,
"png": typeImage,
"gif": typeImage,
"html": typeHTML,
"htm": typeHTML,
"ogg": typeAudio,
"mp3": typeAudio,
"wav": typeAudio,
"mod": typeAudio,
"it": typeAudio,
"xm": typeAudio,
"mid": typeAudio,
"vgm": typeAudio,
"opus": typeAudio,
"m4a": typeAudio,
"aac": typeAudio,
"mp4": typeVideo,
"mkv": typeVideo,
"webm": typeVideo,
"avi": typeVideo,
".out": typeBin,
".a": typeBin,
".o": typeBin,
".ko": typeBin, /* Kernel extensions... WHY ARE YOU GIVING ACCESS TO DIRECTORIES WITH THIS */
".gophermap": typeDirectory,
".lz": typeBinArchive,
".gz": typeBinArchive,
".bz2": typeBinArchive,
".7z": typeBinArchive,
".zip": typeBinArchive,
".gitignore": typeFile,
".txt": typeFile,
".json": typeFile,
".yaml": typeFile,
".ocaml": typeFile,
".s": typeFile,
".c": typeFile,
".py": typeFile,
".h": typeFile,
".go": typeFile,
".fs": typeFile,
".odin": typeFile,
".nanorc": typeFile,
".bashrc": typeFile,
".mkshrc": typeFile,
".vimrc": typeFile,
".vim": typeFile,
".viminfo": typeFile,
".sh": typeFile,
".conf": typeFile,
".xinitrc": typeFile,
".jstarrc": typeFile,
".joerc": typeFile,
".jpicorc": typeFile,
".profile": typeFile,
".bash_profile": typeFile,
".bash_logout": typeFile,
".log": typeFile,
".ovpn": typeFile,
".md": typeMarkup,
".xml": typeXML,
".doc": typeDoc,
".docx": typeDoc,
".pdf": typeDoc,
".jpg": typeImage,
".jpeg": typeImage,
".png": typeImage,
".gif": typeImage,
".webp": typeImage,
".html": typeHTML,
".htm": typeHTML,
".ogg": typeAudio,
".mp3": typeAudio,
".wav": typeAudio,
".mod": typeAudio,
".it": typeAudio,
".xm": typeAudio,
".mid": typeAudio,
".vgm": typeAudio,
".opus": typeAudio,
".m4a": typeAudio,
".aac": typeAudio,
".mp4": typeVideo,
".mkv": typeVideo,
".webm": typeVideo,
".avi": typeVideo,
}
// getItemType is an internal function to get an ItemType for a file name string

Loading…
Cancel
Save