Files
SCM-Manager/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationConstraints.java

13 lines
330 B
Java
Raw Normal View History

package sonia.scm.api.v2;
public class ValidationConstraints {
/**
* A user or group name should not start with the @ character
* and it not contains whitespaces
* the characters: . - _ are allowed
*/
public static final String USER_GROUP_PATTERN = "^[^@][A-z0-9\\.\\-_]|([A-z0-9\\.\\-_]*[A-z0-9\\.\\-_])?$";
}