From 1c781fe31d4f09b66bfa21da10aede6e837cf6d4 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Wed, 24 May 2023 21:15:19 -0700 Subject: [PATCH] fix: ignore case README filenames --- server/backend/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/backend/utils.go b/server/backend/utils.go index e2724402c..03d3cccda 100644 --- a/server/backend/utils.go +++ b/server/backend/utils.go @@ -16,6 +16,7 @@ func LatestFile(r Repository, pattern string) (string, string, error) { // Readme returns the repository's README. func Readme(r Repository) (readme string, path string, err error) { - readme, path, err = LatestFile(r, "README*") + pattern := "[rR][eE][aA][dD][mM][eE]*" + readme, path, err = LatestFile(r, pattern) return }