From cc6c1ad3e7c2f2b77015d274f87871ded17efc0d Mon Sep 17 00:00:00 2001 From: NicolasRichel Date: Fri, 4 Mar 2022 09:56:33 +0100 Subject: [PATCH] PATCH: fix(file-icon): ignore extension case (#178) Co-authored-by: NicolasRichel --- src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue | 2 +- .../BIMDataFileManager/components/FileCard.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue b/src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue index a3d4fbab..131bc373 100644 --- a/src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue +++ b/src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue @@ -23,7 +23,7 @@ export default { }, computed: { name() { - return this.getFileExtension(this.fileName) || "unknown"; + return (this.getFileExtension(this.fileName) || "unknown").toLowerCase(); }, imageUrl() { return icons[`icon_${this.name}`] || icons.icon_unknown; diff --git a/src/BIMDataSmartComponents/BIMDataFileManager/components/FileCard.vue b/src/BIMDataSmartComponents/BIMDataFileManager/components/FileCard.vue index c04f5cf8..fad97fb2 100644 --- a/src/BIMDataSmartComponents/BIMDataFileManager/components/FileCard.vue +++ b/src/BIMDataSmartComponents/BIMDataFileManager/components/FileCard.vue @@ -55,7 +55,7 @@