mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-13 18:18:52 +02:00
Add office documents
This commit is contained in:
@@ -73,7 +73,7 @@ func isArchive(f string) bool {
|
|||||||
|
|
||||||
// isDocument checks if file is document.
|
// isDocument checks if file is document.
|
||||||
func isDocument(f string) bool {
|
func isDocument(f string) bool {
|
||||||
var types = []string{".pdf", ".xps", ".epub", ".mobi", ".docx", ".pptx"}
|
var types = []string{".pdf", ".xps", ".epub", ".mobi", ".docx", ".pptx", ".xlsx"}
|
||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
if strings.ToLower(filepath.Ext(f)) == t {
|
if strings.ToLower(filepath.Ext(f)) == t {
|
||||||
return true
|
return true
|
||||||
|
Reference in New Issue
Block a user