Skip to content

Commit b894024

Browse files
author
eatmoreapple
committed
:BUG: 修复获取文件扩展名的错误
1 parent 396a4f2 commit b894024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func getFileExt(name string) string {
6868
if len(ext) == 0 {
6969
ext = "undefined"
7070
}
71-
return strings.TrimSuffix(ext, ".")
71+
return strings.TrimPrefix(ext, ".")
7272
}
7373

7474
const (

0 commit comments

Comments
 (0)