mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Add Scaladoc.
This commit is contained in:
@@ -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\\-_]+$")){
|
||||||
|
|||||||
Reference in New Issue
Block a user