From 2efaf654c71f2ca8bd14051b727aa6f0e1bc950b Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Tue, 1 Feb 2022 19:46:17 +0100 Subject: [PATCH] Added webp support --- src/main/kotlin/app/git/RawFileManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/git/RawFileManager.kt b/src/main/kotlin/app/git/RawFileManager.kt index cb110aa..e07cfb2 100644 --- a/src/main/kotlin/app/git/RawFileManager.kt +++ b/src/main/kotlin/app/git/RawFileManager.kt @@ -30,6 +30,7 @@ class RawFileManager @AssistedInject constructor( "png", "jpg", "jpeg", + "webp", ) init { @@ -87,7 +88,7 @@ class RawFileManager @AssistedInject constructor( val path = entry.newPath val fileExtension = path.split(".").lastOrNull() ?: return false - return imageFormatsSupported.contains(fileExtension) + return imageFormatsSupported.contains(fileExtension.lowercase()) } // fun isBinary() = RawText.isBinary()