Repository name allows upper case.

This commit is contained in:
takezoe
2013-05-03 15:50:17 +09:00
parent 283d787044
commit 39f9e8262d

View File

@@ -70,7 +70,7 @@ class CreateRepositoryController extends ControllerBase {
*/
def repository: Constraint = new Constraint(){
def validate(name: String, value: String): Option[String] = {
if(!value.matches("^[a-z0-9\\-_]+$")){
if(!value.matches("^[a-zA-Z0-9\\-_]+$")){
Some("Repository name contains invalid character.")
} else if(getRepositories(context.loginUser).contains(value)){
Some("Repository already exists.")