filesystem: allow @ in file names

It's apparently common in files from Google calendar.

The whole regex probably needs to be reconsidered, but for now just make
this work and keep it simple.
This commit is contained in:
Conrad Hoffmann 2024-11-08 13:25:30 +01:00
parent c6fdff75d0
commit 9442cd6517

View file

@ -29,7 +29,7 @@ type filesystemBackend struct {
} }
var ( var (
validFilenameRegex = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9_-]+(.[a-zA-Z]+)?$`) validFilenameRegex = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9@_-]+(.[a-zA-Z]+)?$`)
defaultResourceName = "default" defaultResourceName = "default"
) )