Merge pull request #6478 from infoMantisGmbH/master

Allow underscore as the first char for project names.
This commit is contained in:
Dmitriy Zaporozhets
2014-03-11 10:13:52 +02:00
+2 -2
View File
@@ -7,7 +7,7 @@ module Gitlab
end
def project_name_regex
/\A[a-zA-Z0-9][a-zA-Z0-9_\-\. ]*\z/
/\A[a-zA-Z0-9_][a-zA-Z0-9_\-\. ]*\z/
end
def name_regex
@@ -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