diff --git a/backgroundchanger.go b/backgroundchanger.go index 61217e2..0182a3f 100644 --- a/backgroundchanger.go +++ b/backgroundchanger.go @@ -113,6 +113,7 @@ func isBeatmap(filename string) bool { return false } +// checks given filename for most common image extentions func isImage(filename string) bool { var imageExtentions []string = []string{"jpeg", "jpg", "png", "JPEG", "JPG", "PNG"} for _, extention := range imageExtentions {