Add Scaladoc.

This commit is contained in:
takezoe
2013-04-27 04:01:13 +09:00
parent dba9a2f7ec
commit 152d6abdb6

View File

@@ -68,6 +68,9 @@ class CreateRepositoryServlet extends ServletBase {
redirect("/%s/%s".format(LoginUser, form.name)) redirect("/%s/%s".format(LoginUser, form.name))
} }
/**
* Constraint for the repository name.
*/
def repository: Constraint = new Constraint(){ def repository: Constraint = new Constraint(){
def validate(name: String, value: String): Option[String] = { def validate(name: String, value: String): Option[String] = {
if(!value.matches("^[a-z0-9\\-_]+$")){ if(!value.matches("^[a-z0-9\\-_]+$")){