fix: 🐛 use lowercase file ext
This commit is contained in:
parent
e6c0e16e84
commit
1bab67d36c
3
main.go
3
main.go
@ -9,6 +9,7 @@ import (
|
||||
"io"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"syscall/js"
|
||||
@ -100,7 +101,7 @@ func createArchive(this js.Value, args []js.Value) any {
|
||||
return nil
|
||||
}
|
||||
|
||||
ext := filepath.Ext(document.Name)
|
||||
ext := strings.ToLower(filepath.Ext(document.Name))
|
||||
|
||||
fileName := fmt.Sprintf("%s_%s%s", filePrefix, file.Suffix, ext)
|
||||
i := 1
|
||||
|
Loading…
Reference in New Issue
Block a user