commit | 1568d7755c70cdb26ddc865a7181c90f24480676 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Feb 09 14:49:02 2018 +0100 |
committer | David Pursehouse <dpursehouse@collab.net> | Wed Sep 05 12:14:16 2018 +0900 |
tree | 0622dbfee20923b3829c64d9b98197aad927f7c8 | |
parent | 0d7b78fc86360730df807bd3c459c1a3a095ea63 [diff] |
Adapt to changes in Gerrit core ExternalId.USER_NAME_PATTERN_REGEX was made private. Instead ExternalId.isValidUsername should be used. Change-Id: I18467023a1a9bff012e33634b28c6e9892ffe79e Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java index 78c7051..a61c851 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java +++ b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java
@@ -105,7 +105,7 @@ AccountState state; if (ident.matches(ACCOUNT_ID_PATTERN)) { state = accountCache.get(new Account.Id(Integer.parseInt(ident))); - } else if (ident.matches(ExternalId.USER_NAME_PATTERN_REGEX)) { + } else if (ExternalId.isValidUsername(ident)) { state = accountCache.getByUsername(ident); } else { return null;