From 509337a2f7ab2bae51fa2c2b9d5aabd204a334da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net>
Date: Wed, 16 Apr 2025 17:36:32 +0200
Subject: [PATCH] fix: . allowed in filenames except as first char

---
 src/files.jl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/files.jl b/src/files.jl
index 9033cc1..2dce232 100644
--- a/src/files.jl
+++ b/src/files.jl
@@ -250,9 +250,12 @@ end
 getoutput(controller) = gethub(controller)[:output]
 
 function valid_filename(name)
+    if startswith(name, ".")
+        return false
+    end
     # adapted from NyxUI.jl (MIT license, same author)
     windows_extra = "|:*?<>"
-    for c in "./\\'\"`" * windows_extra
+    for c in "/\\'\"`" * windows_extra
         if c in name
             return false
         end
-- 
GitLab