fix: is readme use regex

This commit is contained in:
2022-05-23 18:10:41 +08:00
parent fbebd0a623
commit b0092487e6
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ module RepositoriesHelper
def is_readme?(type, str)
return false if type != 'file' || str.blank?
readme_types = ["readme.md", "readme", "readme_en.md", "readme_zh.md", "readme_en", "readme_zh"]
readme_types.include?(str.to_s.downcase)
readme_types.include?(str.to_s.downcase) || str =~ CustomRegexp::MD_REGEX
end
def render_commit_author(author_json)