🐛 修复获取文件扩展名的时候会多一个点

This commit is contained in:
eatmoreapple 2021-11-11 15:29:38 +08:00
parent 687f95c7e9
commit f395510f9a

View File

@ -68,7 +68,7 @@ func getFileExt(name string) string {
if len(ext) == 0 {
ext = "undefined"
}
return ext
return strings.TrimSuffix(ext, ".")
}
const (