mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 06:07:22 +01:00
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:
parent
c6fdff75d0
commit
9442cd6517
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue