mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 10:06:04 +10:00
Allow . files to be created
Fixes: https://github.com/gitlabhq/gitlabhq/issues/5770
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user