We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2159af commit 6ed8ca2Copy full SHA for 6ed8ca2
apps/frontend/src/utils/common.ts
@@ -118,7 +118,7 @@ const commonController = {
118
const correctType = FileExtension[type];
119
const dotIndex = fileName.lastIndexOf('.');
120
if (dotIndex > -1) {
121
- const _type = fileName.slice(dotIndex + 1);
+ const _type = fileName.slice(dotIndex + 1).toLowerCase();
122
if (correctType.indexOf(_type) > -1) {
123
result = true;
124
}
0 commit comments