Change Lowercase

This commit is contained in:
Nayam Amarshe
2024-10-04 14:08:19 +05:30
parent 483145e655
commit e09d6cbd1b

View File

@@ -89,7 +89,7 @@ const Home = () => {
const validateImagePath = (path: string) => {
if (path.length > 0) {
logit("🖼 imagePath: ", path);
const extension = path.toLocaleLowerCase().split(".").pop();
const extension = path.toLowerCase().split(".").pop();
logit("🔤 Extension: ", extension);
if (!VALID_IMAGE_FORMATS.includes(extension.toLowerCase())) {
toast({