🐛 sql group

This commit is contained in:
微凉
2021-10-30 17:34:34 +08:00
parent 0324ea1fcb
commit 2780efaea8
7 changed files with 23 additions and 11 deletions

View File

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