diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/gallery/query_filter.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/gallery/query_filter.go b/internal/gallery/query_filter.go index 9e10758..dda73c4 100644 --- a/internal/gallery/query_filter.go +++ b/internal/gallery/query_filter.go @@ -18,7 +18,10 @@ func filterQueryPhotos( for _, photo := range photos { ext := strings.TrimPrefix(filepath.Ext(photo.RelativePath), ".") - if strings.EqualFold(ext, query.Extension) { + if strings.EqualFold( + strings.TrimPrefix(ext, "."), + strings.TrimPrefix(query.Extension, "."), + ) { filtered = append(filtered, photo) } } |