From 38871a8e6e9da33b79090fef1c478ba98758e68b Mon Sep 17 00:00:00 2001 From: Paladox none Date: Wed, 12 Jul 2017 12:04:08 +0000 Subject: [PATCH] Add support for groups regex to the ui Change-Id: I064f4d39a92bac4724489b372b4c8da9d2e4d0b7 --- .../main/java/com/google/gerrit/client/groups/GroupMap.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupMap.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupMap.java index 76147f598d..73ac183326 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupMap.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupMap.java @@ -28,7 +28,11 @@ public class GroupMap extends NativeMap { public static void match(String match, int limit, int start, AsyncCallback cb) { RestApi call = groups(); if (match != null) { - call.addParameter("m", match); + if (match.startsWith("^")) { + call.addParameter("r", match); + } else { + call.addParameter("m", match); + } } if (limit > 0) { call.addParameter("n", limit);