Merge "Ignore case in file extension checks"

This commit is contained in:
jenkins-bot 2015-10-26 23:37:51 +00:00 committed by Gerrit Code Review
commit 00ebd0542f

View file

@ -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 );
};
/**