From c95174ff11922a2b1c3173a44d20fffad9ebcbbe Mon Sep 17 00:00:00 2001 From: eMerzh Date: Mon, 26 Feb 2024 10:33:13 +0100 Subject: [PATCH] feat(libreoffice): add macOS *.key support --- pkg/modules/libreoffice/api/api.go | 1 + pkg/modules/libreoffice/api/api_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/modules/libreoffice/api/api.go b/pkg/modules/libreoffice/api/api.go index 6f66b1d7..aead1088 100644 --- a/pkg/modules/libreoffice/api/api.go +++ b/pkg/modules/libreoffice/api/api.go @@ -316,6 +316,7 @@ func (a *Api) Extensions() []string { ".odp", ".fodp", ".pages", + ".key", ".potm", ".pot", ".pptx", diff --git a/pkg/modules/libreoffice/api/api_test.go b/pkg/modules/libreoffice/api/api_test.go index 169535fb..3ebc45e6 100644 --- a/pkg/modules/libreoffice/api/api_test.go +++ b/pkg/modules/libreoffice/api/api_test.go @@ -450,7 +450,7 @@ func TestApi_Extensions(t *testing.T) { extensions := a.Extensions() actual := len(extensions) - expect := 80 + expect := 81 if actual != expect { t.Errorf("expected %d extensions, but got %d", expect, actual)