Merge pull request #6050 from jvanbaarsen/regex-fix

Allow . files to be created
This commit is contained in:
Dmitriy Zaporozhets 2014-01-14 13:59:46 -08:00
commit 9a1d0c1739
1 changed files with 2 additions and 2 deletions

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