Skip to content

Commit e80c1d7

Browse files
authored
Merge pull request #165 from per1234/fix-readme-regex
Correct readme filename regular expression
2 parents 296c0d0 + 9b26e71 commit e80c1d7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

internal/rule/rulefunction/rulefunction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Type func() (result ruleresult.Type, output string)
3535
// MissingReadme checks if the project has a readme that will be recognized by GitHub.
3636
func MissingReadme() (result ruleresult.Type, output string) {
3737
// https://github.com/github/markup/blob/master/README.md
38-
readmeRegexp := regexp.MustCompile(`(?i)^readme\.(markdown)|(mdown)|(mkdn)|(md)|(textile)|(rdoc)|(org)|(creole)|(mediawiki)|(wiki)|(rst)|(asciidoc)|(adoc)|(asc)|(pod)|(txt)$`)
38+
readmeRegexp := regexp.MustCompile(`(?i)^readme\.((markdown)|(mdown)|(mkdn)|(md)|(textile)|(rdoc)|(org)|(creole)|(mediawiki)|(wiki)|(rst)|(asciidoc)|(adoc)|(asc)|(pod)|(txt))$`)
3939

4040
// https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes#about-readmes
4141
if pathContainsRegexpMatch(projectdata.ProjectPath(), readmeRegexp) ||

0 commit comments

Comments
 (0)