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
+2 -1
View File
@@ -12,7 +12,8 @@ import (
// resourceNameRe restricts calendar/address book names to characters that
// are safe as both a URL path segment and a filesystem directory name.
var resourceNameRe = regexp.MustCompile(`^[a-zA-Z0-9_-]{1,64}$`)
// Includes dots for hidden files/folders (Unix convention).
var resourceNameRe = regexp.MustCompile(`^[a-zA-Z0-9._-]{1,64}$`)
// hexColorRe validates the 6-digit hex color format produced by an HTML
// <input type="color">, e.g. "#3b82f6".