提交 9a1d0c17 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #6050 from jvanbaarsen/regex-fix

Allow . files to be created
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册