mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
15 lines
379 B
Java
15 lines
379 B
Java
package sonia.scm.api.v2;
|
|
|
|
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
|
|
*/
|
|
public static final String USER_GROUP_PATTERN = "^[A-Za-z0-9\\.\\-_][A-Za-z0-9\\.\\-_@]*$";
|
|
|
|
}
|