diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-02 11:15:04 +0100 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-02 12:26:04 +0100 |
commit | be0af5e69fc60bf629130290b49dee07510359a3 (patch) | |
tree | 43ec6b2899622206fe6319c434f82e991af365bf /lib | |
parent | 133c1a7cc3f1441bf18c886c30681953992b38c9 (diff) | |
download | gitlab-ce-be0af5e69fc60bf629130290b49dee07510359a3.tar.gz |
Test type of README file without extension
Diffstat (limited to 'lib')
-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, |