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

15 lines
368 B
Java
Raw Normal View History

package sonia.scm.api.v2;
2018-09-27 09:27:34 +02:00
public final class ValidationConstraints {
private ValidationConstraints() {}
/**
* A user or group name should not start with <code>@</code> or a whitespace
* and it not contains whitespaces
* and the characters: . - _ @ are allowed
*/
2018-10-01 16:30:30 +02:00
public static final String USER_GROUP_PATTERN = "^[^@\\s][A-Za-z0-9\\.\\-_@]+$";
}