Skip to content

Commit

Permalink
fix: ignore case README filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni authored and aymanbagabas committed May 25, 2023
1 parent 940bde7 commit 1c781fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/backend/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 1c781fe

Please sign in to comment.