From 056e339ac40fb36d317b004d109aa9cf1873acb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Sun, 25 Oct 2015 22:31:07 -0700 Subject: [PATCH] Ignore case in file extension checks Bug: T115563 Change-Id: I27efb1a1c6510edc88357b69b1631cf55ca11539 --- resources/mmv/provider/mmv.provider.GuessedThumbnailInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/mmv/provider/mmv.provider.GuessedThumbnailInfo.js b/resources/mmv/provider/mmv.provider.GuessedThumbnailInfo.js index c17f1e198..9fb74a2a8 100644 --- a/resources/mmv/provider/mmv.provider.GuessedThumbnailInfo.js +++ b/resources/mmv/provider/mmv.provider.GuessedThumbnailInfo.js @@ -175,7 +175,7 @@ * @return {boolean} */ GuessedThumbnailInfo.prototype.canHaveLargerThumbnailThanOriginal = function ( file ) { - return ( file.getExtension() in this.vectorExtensions ); + return ( file.getExtension().toLowerCase() in this.vectorExtensions ); }; /** @@ -185,7 +185,7 @@ * @return {boolean} */ GuessedThumbnailInfo.prototype.canBeDisplayedInBrowser = function ( file ) { - return ( file.getExtension() in this.displayableExtensions ); + return ( file.getExtension().toLowerCase() in this.displayableExtensions ); }; /**