✨ static files
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user