filesystem: also allow dot (.) in file names

This commit is contained in:
Conrad Hoffmann 2024-11-11 10:42:27 +01:00
parent 9442cd6517
commit 63f78d99e1

View file

@ -29,7 +29,7 @@ type filesystemBackend struct {
}
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"
)