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"
|
"io"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"slices"
|
"slices"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"syscall/js"
|
"syscall/js"
|
||||||
@ -100,7 +101,7 @@ func createArchive(this js.Value, args []js.Value) any {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
ext := filepath.Ext(document.Name)
|
ext := strings.ToLower(filepath.Ext(document.Name))
|
||||||
|
|
||||||
fileName := fmt.Sprintf("%s_%s%s", filePrefix, file.Suffix, ext)
|
fileName := fmt.Sprintf("%s_%s%s", filePrefix, file.Suffix, ext)
|
||||||
i := 1
|
i := 1
|
||||||
|
Loading…
Reference in New Issue
Block a user