Allow single letter usernames.
Change-Id: Ic099a77c0b99b3a3c664fbb213fabcf06799ab2c Signed-off-by: Maciej Zenczykowski <maze@google.com>
This commit is contained in:
@@ -69,9 +69,13 @@ public final class Account {
|
||||
|
||||
/** Regular expression that {@link #userName} must match. */
|
||||
public static final String USER_NAME_PATTERN = "^" + //
|
||||
"(" + //
|
||||
USER_NAME_PATTERN_FIRST + //
|
||||
USER_NAME_PATTERN_REST + "*" + //
|
||||
USER_NAME_PATTERN_LAST + //
|
||||
"|" + //
|
||||
USER_NAME_PATTERN_FIRST + //
|
||||
")" + //
|
||||
"$";
|
||||
|
||||
/** Key local to Gerrit to identify a user. */
|
||||
|
||||
Reference in New Issue
Block a user