diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-01-14 18:26:01 +0100 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-01-14 18:26:01 +0100 |
commit | cc1f7ea2de68ba7d2f45a65e36549c63fb23508f (patch) | |
tree | f1bf3efb14d139c7242450e1f468d14e5fee8ef3 /lib | |
parent | 71f1a84599101b2af2f74ae54ebfb2f880935985 (diff) | |
download | gitlab-ce-cc1f7ea2de68ba7d2f45a65e36549c63fb23508f.tar.gz |
Allow . files to be created
Fixes: https://github.com/gitlabhq/gitlabhq/issues/5770
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index 943dc9dc7ea..d18fc8bf2ce 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -17,7 +17,7 @@ module Gitlab def path_regex default_regex end - + def archive_formats_regex #|zip|tar| tar.gz | tar.bz2 | /(zip|tar|tar\.gz|tgz|gz|tar\.bz2|tbz|tbz2|tb2|bz2)/ @@ -49,7 +49,7 @@ module Gitlab protected def default_regex - /\A[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?<!\.git)\z/ + /\A[.?]?[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?<!\.git)\z/ end end end |