diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-02 13:15:04 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-02 14:26:04 +0300 |
commit | be0af5e69fc60bf629130290b49dee07510359a3 (patch) | |
tree | 43ec6b2899622206fe6319c434f82e991af365bf /lib/gitlab/file_detector.rb | |
parent | 133c1a7cc3f1441bf18c886c30681953992b38c9 (diff) |
Test type of README file without extension
Diffstat (limited to 'lib/gitlab/file_detector.rb')
-rw-r--r-- | lib/gitlab/file_detector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/file_detector.rb b/lib/gitlab/file_detector.rb index 898dc7b0e23..d6338b09e3d 100644 --- a/lib/gitlab/file_detector.rb +++ b/lib/gitlab/file_detector.rb @@ -8,7 +8,7 @@ module Gitlab module FileDetector PATTERNS = { # Project files - readme: %r{\A(readme|index)[^\/]*\z}i, + readme: %r{\A(readme|index)[^/]*\z}i, changelog: %r{\A(changelog|history|changes|news)[^/]*\z}i, license: %r{\A((un)?licen[sc]e|copying)(\.[^/]+)?\z}i, contributing: %r{\Acontributing[^/]*\z}i, |