static files

This commit is contained in:
微凉
2021-10-30 19:26:23 +08:00
parent 2780efaea8
commit eb358e6ede
7 changed files with 29 additions and 9 deletions

View File

@ -34,7 +34,7 @@ func GetFileType(ext string) int {
if ext == "" {
return conf.UNKNOWN
}
ext = strings.TrimLeft(ext,".")
ext = strings.ToLower(strings.TrimLeft(ext,"."))
if IsContain(conf.OfficeTypes, ext) {
return conf.OFFICE
}