Fix photo filename pattern

This commit is contained in:
2025-12-10 11:32:56 +01:00
parent 248085a4da
commit e5619484d2
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ var supportedExtensions = map[string]bool{
}
// Filename pattern: YYYY-MM-DD_description.ext
var filenamePattern = regexp.MustCompile(`^(\d{4})-(\d{2})-(\d{2})_(.+)\.(\w+)$`)
var filenamePattern = regexp.MustCompile(`^(\d{4})-(\d{2})-(\d{2}) (.+)\.(\w+)$`)
// LoadAllPhotos scans and loads all photos from the configured directory.
func (s *PhotoStore) LoadAllPhotos() ([]*models.Photo, error) {