chore: added fileName.startsWith('.')

This commit is contained in:
Pragadesh-45 2024-10-09 14:56:41 +05:30
parent b0040e86d0
commit 6e83ee28a0

View File

@ -167,7 +167,7 @@ const isValidFilename = (fileName) => {
return false;
}
if (fileName.endsWith(' ') || fileName.endsWith('.')) {
if (fileName.endsWith(' ') || fileName.endsWith('.') || fileName.startsWith('.')) {
return false;
}