feat: allow dots in resource/folder names

This commit is contained in:
2026-08-30 20:16:05 +02:00
parent 6a95e27e31
commit 36e3fecc11
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -56,7 +56,7 @@
void upload(Array.from(folderInput.files || []));
folderInput.value = "";
});
const folderNameRe = /^[a-zA-Z0-9_-]{1,64}$/;
const folderNameRe = /^[a-zA-Z0-9._-]{1,64}$/;
newFolderButton?.addEventListener("click", async () => {
const name = window.prompt("New folder name:");
if (!name) {
+1 -1
View File
@@ -61,7 +61,7 @@
folderInput.value = "";
});
const folderNameRe = /^[a-zA-Z0-9_-]{1,64}$/;
const folderNameRe = /^[a-zA-Z0-9._-]{1,64}$/;
newFolderButton?.addEventListener("click", async () => {
const name = window.prompt("New folder name:");