Allow names with one character only

This commit is contained in:
René Pfeuffer
2018-10-02 09:59:17 +02:00
parent ac9a54d339
commit 368790776a

View File

@@ -9,6 +9,6 @@ public final class ValidationConstraints {
* 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\\.\\-_@]+$";
public static final String USER_GROUP_PATTERN = "^[A-Za-z0-9\\.\\-_][A-Za-z0-9\\.\\-_@]*$";
}