@tft/crispr-forms 13.0.2 → 13.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/material/image-upload-field/image-upload-field.component.mjs +2 -2
- package/fesm2015/tft-crispr-forms.mjs +1 -1
- package/fesm2015/tft-crispr-forms.mjs.map +1 -1
- package/fesm2020/tft-crispr-forms.mjs +1 -1
- package/fesm2020/tft-crispr-forms.mjs.map +1 -1
- package/package.json +1 -1
- package/tft-crispr-forms-13.0.3.tgz +0 -0
- package/tft-crispr-forms-13.0.2.tgz +0 -0
|
@@ -1320,7 +1320,7 @@ function allowedFileExtValidator(allowedFileExtensions, onlyAllowFiles = true) {
|
|
|
1320
1320
|
const isFile = controlValue instanceof File;
|
|
1321
1321
|
if (!onlyAllowFiles && !isFile)
|
|
1322
1322
|
return null;
|
|
1323
|
-
const actualExtension = isFile ? controlValue.name.split('.').pop() : 'Not a file';
|
|
1323
|
+
const actualExtension = isFile ? controlValue.name.split('.').pop().toLocaleLowerCase() : 'Not a file';
|
|
1324
1324
|
const isAllowedExtension = allowedFileExtensions.includes(actualExtension);
|
|
1325
1325
|
if (isAllowedExtension) {
|
|
1326
1326
|
return null;
|