Change Username-Validation: allow usernames <3 char

This commit is contained in:
wmeszar
2012-01-10 05:25:02 +01:00
parent 70a7ad1a5f
commit 75f3e28fe0
2 changed files with 5 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ public class ValidationUtil
private static final String REGEX_REPOSITORYNAME = "^[A-z0-9\\.\\-_/]+$";
/** Field description */
private static final String REGEX_USERNAME = "^[^ ][A-z0-9\\.\\-_@ ]+[^ ]$";
private static final String REGEX_USERNAME = "^[A-z0-9\\.\\-_@]|[^ ]([A-z0-9\\.\\-_@ ]*[A-z0-9\\.\\-_@]|[^ ])?$";
//~--- get methods ----------------------------------------------------------