fix regexp for user and group name

This commit is contained in:
Mohamed Karray
2018-10-01 16:30:30 +02:00
parent c99c3782bd
commit d6fd11fe95
2 changed files with 34 additions and 2 deletions

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