From 6e83ee28a0917fd006fd5aaee011553d280fdcef Mon Sep 17 00:00:00 2001 From: Pragadesh-45 Date: Wed, 9 Oct 2024 14:56:41 +0530 Subject: [PATCH] chore: added `fileName.startsWith('.')` --- packages/bruno-electron/src/utils/filesystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/utils/filesystem.js b/packages/bruno-electron/src/utils/filesystem.js index ec0d1ce67..a066edefc 100644 --- a/packages/bruno-electron/src/utils/filesystem.js +++ b/packages/bruno-electron/src/utils/filesystem.js @@ -167,7 +167,7 @@ const isValidFilename = (fileName) => { return false; } - if (fileName.endsWith(' ') || fileName.endsWith('.')) { + if (fileName.endsWith(' ') || fileName.endsWith('.') || fileName.startsWith('.')) { return false; }