Skip to content

Commit 02c997f

Browse files
committed
Correct regular expression for readme filename
1 parent dedef57 commit 02c997f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check/checkfunctions/checkfunctions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func containsIncorrectPathBaseCase(pathList paths.PathList, correctBaseName stri
7070
// MissingReadme checks if the project has a readme that will be recognized by GitHub.
7171
func MissingReadme() (result checkresult.Type, output string) {
7272
// https://github.com/github/markup/blob/master/README.md
73-
readmeRegexp := regexp.MustCompile(`(?i)^readme\.(markdown)|(mdown)|(mkdn)|(md)|(textile)|(rdoc)|(org)|(creole)|(mediawiki)|(wiki)|(rst)|(asciidoc)|(adoc)|(asc)|(pod)|(txt)`)
73+
readmeRegexp := regexp.MustCompile(`(?i)^readme\.(markdown)|(mdown)|(mkdn)|(md)|(textile)|(rdoc)|(org)|(creole)|(mediawiki)|(wiki)|(rst)|(asciidoc)|(adoc)|(asc)|(pod)|(txt)$`)
7474

7575
// https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes#about-readmes
7676
if pathContainsReadme(checkdata.ProjectPath(), readmeRegexp) ||

0 commit comments

Comments
 (0)