mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
Add Scaladoc.
This commit is contained in:
@@ -68,6 +68,9 @@ class CreateRepositoryServlet extends ServletBase {
|
||||
redirect("/%s/%s".format(LoginUser, form.name))
|
||||
}
|
||||
|
||||
/**
|
||||
* Constraint for the repository name.
|
||||
*/
|
||||
def repository: Constraint = new Constraint(){
|
||||
def validate(name: String, value: String): Option[String] = {
|
||||
if(!value.matches("^[a-z0-9\\-_]+$")){
|
||||
|
||||
Reference in New Issue
Block a user