Allow single letter usernames.

Change-Id: Ic099a77c0b99b3a3c664fbb213fabcf06799ab2c
Signed-off-by: Maciej Zenczykowski <maze@google.com>
This commit is contained in:
Maciej Żenczykowski
2011-04-07 10:14:25 -07:00
parent d1fac8378f
commit 5b3fa87251

View File

@@ -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. */