Skip to content

Commit

Permalink
Fix: get url extension without .
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Dec 2, 2023
1 parent 55e7749 commit 46e470e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,5 @@ func GetUrlExtension(u string) string {
if err != nil {
return ""
}
return filepath.Ext(p.Path)
return strings.TrimLeft(filepath.Ext(p.Path), ".")
}

0 comments on commit 46e470e

Please sign in to comment.