Allow . files to be created

Fixes: https://github.com/gitlabhq/gitlabhq/issues/5770
This commit is contained in:
Jeroen van Baarsen
2014-01-14 18:26:01 +01:00
parent 71f1a84599
commit cc1f7ea2de
+2 -2
View File
@@ -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